forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.cmd
27 lines (24 loc) · 1.08 KB
/
Build.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
@echo off
cd /d "%~dp0"
if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise" (
echo.
echo Using Visual Studio 2019 Enterprise
echo.
set "msbuild_path=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe"
) else if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional" (
echo.
echo Using Visual Studio 2019 Professional
echo.
set "msbuild_path=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Professional\MSBuild\Current\Bin\MSBuild.exe"
) else if exist "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community" (
echo.
echo Using Visual Studio 2019 Community
echo.
set "msbuild_path=%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe"
) else (
echo Could not find an installed version of Visual Studio 2019 Enterprise or Community
exit
)
"%msbuild_path%" linq2db.sln /p:Configuration=Release /t:Restore;Rebuild /v:m
"%msbuild_path%" linq2db.sln /p:Configuration=Debug /t:Restore;Rebuild /v:m
"%msbuild_path%" linq2db.sln /p:Configuration=Azure /t:Restore;Rebuild /v:m