Linux/x86: fix build (#26594)
[platform/upstream/coreclr.git] / clean.sh
index d4af84a..0a30b29 100755 (executable)
--- a/clean.sh
+++ b/clean.sh
@@ -26,11 +26,14 @@ then
    echo "Removing all untracked files in the working tree"
    git clean -xdf $__working_tree_root
    exit $?
+elif  [ $# == 0 ] || [ "$*" == "-b" ]; then
+    __args="/t:CleanAllProjects"
+elif  [ "$*" == "-p" ]; then
+    __args="/t:CleanPackages"
+elif  [ "$*" == "-c" ]; then
+    __args="/t:CleanPackagesCache"
 fi
 
-if [ $# == 0 ]; then
-    __args=-b
-fi
 
-$__working_tree_root/run.sh clean $__args $*
+$__working_tree_root/dotnet.sh msbuild /nologo /verbosity:minimal /clp:Summary /flp:v=normal\;LogFile=clean.log $__args
 exit $?