Skip to content

Commit 66c054a

Browse files
Fix up clean.bat as well to use dotnet
1 parent afcdcec commit 66c054a

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

clean.bat

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
1-
@setlocal enabledelayedexpansion
2-
@set MSBUILD=
3-
@for /D %%M in ("%ProgramFiles%\Microsoft Visual Studio\2022"\*) do (
4-
@if exist "%%M\MSBuild\Current\Bin\MSBuild.exe" (
5-
@set "MSBUILD=%%M\MSBuild\Current\Bin\MSBuild.exe"
6-
)
7-
)
8-
@if "%MSBUILD%" == "" (
9-
@echo Could not find VS2022 MSBuild
10-
@exit /b 1
11-
)
12-
"%MSBUILD%" /m ILSpy.sln /t:Clean /p:Configuration=Debug "/p:Platform=Any CPU" || pause
13-
"%MSBUILD%" /m ILSpy.sln /t:Clean /p:Configuration=Release "/p:Platform=Any CPU" || pause
1+
dotnet clean ILSpy.sln /p:Configuration=Debug "/p:Platform=Any CPU" %* || pause
2+
dotnet clean ILSpy.sln /p:Configuration=Release "/p:Platform=Any CPU" %* || pause

0 commit comments

Comments
 (0)