We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dd4d71 commit 9ac53beCopy full SHA for 9ac53be
1 file changed
Code/UsingMSBuildCopyOutputFileToFastDebug/Program.cs
@@ -50,7 +50,7 @@ public override bool Execute()
50
{
51
Console.WriteLine("发现需要复制的文件已经存在");
52
53
- var sourceFileName = sourceFile.Name.Replace(sourceFile.Extension, "");
+ var sourceFileName = Path.GetFileNameWithoutExtension(sourceFile.FullName);
54
55
Console.WriteLine("开始移动文件");
56
0 commit comments