diff options
author | Nate Amundson <naamunds@microsoft.com> | 2016-02-06 00:21:07 +0300 |
---|---|---|
committer | Nate Amundson <naamunds@microsoft.com> | 2016-02-06 00:21:07 +0300 |
commit | 06cc137e5911bcbc020329da249e4745c224cac1 (patch) | |
tree | 04ff27da1eb8e35a621ebf3e7e15ea9c463fa4f3 /build.proj | |
parent | 43a9eb379e950dce91437b889e8bd8759190f007 (diff) |
Add clean.sh for Linux dev workflow
This script provides a convenient way to clean the local dev environment
on Linux. It provides options for removing the bin directory, the
packages directory, the Tools directory, the NuGet package caches, all
untracked files under the src directory, and all of the above.
This change also utilizes the clean targets from BuildTools, and updates
clean.cmd to exclude clean.log from being removed in the "all" option
and check for errors from "git clean".
Diffstat (limited to 'build.proj')
-rw-r--r-- | build.proj | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/build.proj b/build.proj index 3e66066614..031c5b887e 100644 --- a/build.proj +++ b/build.proj @@ -25,6 +25,8 @@ <Import Project="dir.traversal.targets" /> + <Import Project="$(ToolsDir)clean.targets" /> + <PropertyGroup> <!-- Until we have the full clean\sync\build dev workflow in place we still default to restoring during build. @@ -85,17 +87,4 @@ <RemoveDir Directories="$(BinDir)" /> </Target> - <PropertyGroup> - <UserLocalFolder Condition="'$(OsEnvironment)'!='Unix'">$(LocalAppData)/</UserLocalFolder> - <UserLocalFolder Condition="'$(OsEnvironment)'=='Unix'">$(HOME)/.local/share/</UserLocalFolder> - </PropertyGroup> - - <Target Name="CleanPackages"> - <RemoveDir Directories="$(PackagesDir)" /> - </Target> - - <Target Name="CleanPackagesCache"> - <RemoveDir Directories="$(UserLocalFolder)NuGet/Cache/;$(UserLocalFolder)NuGet/v3-cache/;$(UserLocalFolder)dnu/cache/" /> - </Target> - </Project>
\ No newline at end of file |