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" />
3944 </ItemGroup >
4045 <SafeOutputFileCopyTask SourceFiles =" @(OutputFileToCopy)"
4146 DestinationFolder =" $(MainProjectPath)"
42- CleanFile =" $(IntermediateOutputPath)$(CleanFile )"
47+ CleanFile =" $(CleanUsingMSBuildCopyOutputFileToFastDebugFile )"
4348 Condition =" $(MainProjectPath)!=''" ></SafeOutputFileCopyTask >
4449
4550 <SafeOutputFileCopyTask SourceFiles =" @(OutputFileToCopy)"
4651 DestinationFolder =" $(LaunchMainProjectPath)"
47- CleanFile =" $(IntermediateOutputPath)$(CleanFile )"
52+ CleanFile =" $(CleanUsingMSBuildCopyOutputFileToFastDebugFile )"
4853 Condition =" $(LaunchMainProjectPath)!='' and $(MainProjectPath)==''" ></SafeOutputFileCopyTask >
4954 </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 >
5070</Project >
0 commit comments