我想获取当前正在运行的项目的路径,然后转到一个文件夹,然后转到MyFile.cfg。我尝试使用以下方式获取该路径:
Dim currentprojectPath= System.IO.Path.GetDirectoryName(Application.ExecutablePath)
不幸的是,我得到了一条奇怪的道路:
C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 14.0\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\TESTWINDOW
解决方案树:
Configs (folder)
ConfigX (folder)
MyFile.cfg --> file i want to read path of
UnitTestProject (folder) --> running project folder