Skip to content

Commit bf327b1

Browse files
committed
优化复制文件的输出信息
1 parent dfae9c7 commit bf327b1

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Code/UsingMSBuildCopyOutputFileToFastDebug/SafeOutputFileCopyTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public bool Execute()
6767

6868
}
6969

70-
Console.WriteLine("开始复制文件 " + destinationFile);
70+
Console.WriteLine($"开始复制文件 '{sourceFile.FullName}' -> '{destinationFile}'");
7171

7272
File.Copy(sourceFile.FullName, destinationFile);
7373

UsingMSBuildCopyOutputFileToFastDebug.sln

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 16
4-
VisualStudioVersion = 16.0.28803.452
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.6.11822.322 stable
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UsingMSBuildCopyOutputFileToFastDebug", "Code\UsingMSBuildCopyOutputFileToFastDebug\UsingMSBuildCopyOutputFileToFastDebug.csproj", "{CC066117-3365-4036-AC26-73A6417813A8}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ToolPackager", "Code\ToolPackager\ToolPackager.csproj", "{3529D888-F9F3-49D9-83A2-441F85B3AB0D}"
99
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{895AC1B0-7EEE-4E43-A1AF-810CEB6AE345}"
11+
ProjectSection(SolutionItems) = preProject
12+
README.md = README.md
13+
EndProjectSection
14+
EndProject
1015
Global
1116
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1217
Debug|Any CPU = Debug|Any CPU

0 commit comments

Comments
 (0)