1212 <EnableUsingMSBuildCopyOutputFileToFastDebug Condition =" '$(Configuration)' != 'Debug'" >false</EnableUsingMSBuildCopyOutputFileToFastDebug >
1313 </PropertyGroup >
1414
15- <UsingTask TaskName =" UsingMSBuildCopyOutputFileToFastDebug.SafeOutputFileCopyTask"
15+ <!-- 清理文件 -->
16+ <PropertyGroup >
17+ <CleanUsingMSBuildCopyOutputFileToFastDebugFile >$(IntermediateOutputPath)CleanUsingMSBuildCopyOutputFileToFastDebugFile.txt</CleanUsingMSBuildCopyOutputFileToFastDebugFile >
18+ </PropertyGroup >
19+
20+ <UsingTask TaskName =" UsingMSBuildCopyOutputFileToFastDebug.SafeOutputFileCopyTask"
1621 AssemblyFile =" $(NuGetUsingMSBuildCopyOutputFileToFastDebugTaskFolder)\UsingMSBuildCopyOutputFileToFastDebug.dll" />
1722 <UsingTask TaskName =" UsingMSBuildCopyOutputFileToFastDebug.LaunchSettingsParser"
1823 AssemblyFile =" $(NuGetUsingMSBuildCopyOutputFileToFastDebugTaskFolder)\UsingMSBuildCopyOutputFileToFastDebug.dll" />
3742 <OutputFileToCopy Include =" $(OutputPath)$(AssemblyName).dll" ></OutputFileToCopy >
3843 <OutputFileToCopy Include =" $(OutputPath)$(AssemblyName).pdb" ></OutputFileToCopy >
3944 </ItemGroup >
40- <SafeOutputFileCopyTask SourceFiles =" @(OutputFileToCopy)" DestinationFolder =" $(MainProjectPath)"
45+ <SafeOutputFileCopyTask SourceFiles =" @(OutputFileToCopy)"
46+ DestinationFolder =" $(MainProjectPath)"
47+ CleanFile =" $(CleanUsingMSBuildCopyOutputFileToFastDebugFile)"
4148 Condition =" $(MainProjectPath)!=''" ></SafeOutputFileCopyTask >
4249
43- <SafeOutputFileCopyTask SourceFiles =" @(OutputFileToCopy)" DestinationFolder =" $(LaunchMainProjectPath)"
50+ <SafeOutputFileCopyTask SourceFiles =" @(OutputFileToCopy)"
51+ DestinationFolder =" $(LaunchMainProjectPath)"
52+ CleanFile =" $(CleanUsingMSBuildCopyOutputFileToFastDebugFile)"
4453 Condition =" $(LaunchMainProjectPath)!='' and $(MainProjectPath)==''" ></SafeOutputFileCopyTask >
4554 </Target >
55+
56+ <Target Name =" UsingMSBuildCopyOutputFileToFastDebugClean" AfterTargets =" Clean" >
57+ <ReadLinesFromFile
58+ File =" $(CleanUsingMSBuildCopyOutputFileToFastDebugFile)" >
59+ <Output
60+ TaskParameter =" Lines"
61+ ItemName =" UsingMSBuildCopyOutputFileToFastDebugCleanFile" />
62+ </ReadLinesFromFile >
63+
64+ <Delete Files =" @(UsingMSBuildCopyOutputFileToFastDebugCleanFile)" >
65+ <Output TaskParameter =" DeletedFiles" ItemName =" UsingMSBuildCopyOutputFileToFastDebugCleanFileDeletedList" />
66+ </Delete >
67+
68+ <Message Text =" Deleted files: '@(UsingMSBuildCopyOutputFileToFastDebugCleanFileDeletedList)'" />
69+ </Target >
4670</Project >
0 commit comments