Skip to content

Commit cba1acd

Browse files
committed
修改清理
1 parent d933671 commit cba1acd

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

Code/UsingMSBuildCopyOutputFileToFastDebug/Build/dotnetCampus.UsingMSBuildCopyOutputFileToFastDebug.targets

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
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" />
@@ -39,12 +44,27 @@
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>

build/Version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.3.106</Version>
3+
<Version>1.3.201</Version>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)