summaryrefslogtreecommitdiff
path: root/build.proj
diff options
context:
space:
mode:
authorJacek Blaszczynski <biosciencenow@outlook.com>2017-11-08 15:11:18 +0100
committerJacek Blaszczynski <biosciencenow@outlook.com>2017-11-08 15:11:18 +0100
commit8110e41350f33cee45e3a20725cce997b4892452 (patch)
treed0db75b7a980ef1d28b2fddb621bcc612a73f2ab /build.proj
parent37a0e349970b1a1710b9067398124dd42691a3e8 (diff)
downloadcoreclr-8110e41350f33cee45e3a20725cce997b4892452.tar.gz
coreclr-8110e41350f33cee45e3a20725cce997b4892452.tar.bz2
coreclr-8110e41350f33cee45e3a20725cce997b4892452.zip
Refactor clean.cmd based on corefx implementation
clean.cmd supports removal of bin dir, repo-local nuget packeges directory and user-local nuget packages directory. In addition it is possible to clean repo using git clean -xdf command by passing -all command line switch to clean.cmd. In addition logic supporting killing of VBCScompiler.exe process is added
Diffstat (limited to 'build.proj')
-rw-r--r--build.proj7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.proj b/build.proj
index 465e49c471..eabe0e5b4b 100644
--- a/build.proj
+++ b/build.proj
@@ -11,6 +11,8 @@
<Import Project="dir.traversal.targets" />
+ <Import Project="$(ToolsDir)clean.targets" />
+
<!-- The following properties are in place to keep the behavior of build.cmd while we work on the dev workflow steps. -->
<PropertyGroup>
<!-- To disable the restoration of packages, set RestoreDuringBuild=false or pass /p:RestoreDuringBuild=false.-->
@@ -45,5 +47,10 @@
<Exec Command="$(DotnetRestoreCommand) $(SourceDir).nuget/init/init.csproj"
StandardOutputImportance="Low" />
</Target>
+
+ <Target Name="CleanAllProjects">
+ <Message Condition="Exists($(RootBinDir))" Importance="High" Text="Removing $(RootBinDir)"/>
+ <RemoveDir Directories="$(RootBinDir)" />
+ </Target>
</Project>