如何在.NET控制台应用程序中获取应用程序的路径? - How can I get the application's path in a .NET console application?

问题:

How do I find the application's path in a console application? 如何在控制台应用程序中找到应用程序的路径? app

In Windows Forms , I can use Application.StartupPath to find the current path, but this doesn't seem to be available in a console application. Windows Forms中 ,我能够使用Application.StartupPath查找当前路径,但这彷佛在控制台应用程序中不可用。 this


解决方案:

参考一: https://stackoom.com/question/3Vrs/如何在-NET控制台应用程序中获取应用程序的路径
参考二: https://oldbug.net/q/3Vrs/How-can-I-get-the-application-s-path-in-a-NET-console-application
相关文章
相关标签/搜索