Skip to content

Commit 5802427

Browse files
committed
修复获取到的内容不是文件夹
1 parent cbd135c commit 5802427

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Code/UsingMSBuildCopyOutputFileToFastDebug/LaunchSettingsParser.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ public bool Execute()
4141
var executablePath = keyValuePair.Value["executablePath"];
4242
if (executablePath != null)
4343
{
44-
LaunchMainProjectPath = executablePath.ToString();
44+
// executablePath = C:\lindexi\foo\foo.exe
45+
// 需要拿到的是文件夹
46+
LaunchMainProjectPath = Path.GetDirectoryName(executablePath.ToString());
4547
return true;
4648
}
4749
}

0 commit comments

Comments
 (0)