如何在.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
相關文章
相關標籤/搜索