forked from linq2db/linq2db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Compile.cmd
28 lines (25 loc) · 1.21 KB
/
Compile.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
@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%" /v:m /target:Clean Source\LinqToDB\LinqToDB.csproj /property:Configuration=Debug
"%msbuild_path%" /v:m /target:Clean Source\LinqToDB\LinqToDB.csproj /property:Configuration=Release
"%msbuild_path%" /v:m Source\LinqToDB\LinqToDB.csproj /property:Configuration=Debug
"%msbuild_path%" /v:m Source\LinqToDB\LinqToDB.csproj /property:Configuration=Release