forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Clean.cmd
34 lines (30 loc) · 1.24 KB
/
Clean.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@echo off
cd /d "%~dp0"
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" (
echo.
echo Using Visual Studio 2022 Build Tools
echo.
set "root_path=%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools"
) else if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise" (
echo.
echo Using Visual Studio 2022 Enterprise
echo.
set "root_path=%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise"
) else if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Professional" (
echo.
echo Using Visual Studio 2022 Professional
echo.
set "root_path=%ProgramFiles%\Microsoft Visual Studio\2022\Professional"
) else if exist "%ProgramFiles%\Microsoft Visual Studio\2022\Community" (
echo.
echo Using Visual Studio 2022 Community
echo.
set "root_path=%ProgramFiles%\Microsoft Visual Studio\2022\Community"
) else (
echo Could not find an installed version of Visual Studio 2022 or Build Tools
exit
)
set "msbuild_path=%root_path%\MSBuild\Current\Bin\amd64\MSBuild.exe"
"%msbuild_path%" linq2db.sln /p:Configuration=Release /t:Clean /v:m
"%msbuild_path%" linq2db.sln /p:Configuration=Debug /t:Clean /v:m
"%msbuild_path%" linq2db.sln /p:Configuration=Azure /t:Clean /v:m