summaryrefslogtreecommitdiff
path: root/build.proj
diff options
context:
space:
mode:
authorJacek Blaszczynski <biosciencenow@outlook.com>2017-11-08 14:11:18 (GMT)
committerJacek Blaszczynski <biosciencenow@outlook.com>2017-11-08 14:11:18 (GMT)
commit8110e41350f33cee45e3a20725cce997b4892452 (patch)
treed0db75b7a980ef1d28b2fddb621bcc612a73f2ab /build.proj
parent37a0e349970b1a1710b9067398124dd42691a3e8 (diff)
downloadcoreclr-8110e41350f33cee45e3a20725cce997b4892452.zip
coreclr-8110e41350f33cee45e3a20725cce997b4892452.tar.gz
coreclr-8110e41350f33cee45e3a20725cce997b4892452.tar.bz2
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 465e49c..eabe0e5 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>