-
-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathmake.bat
More file actions
51 lines (36 loc) · 1.98 KB
/
make.bat
File metadata and controls
51 lines (36 loc) · 1.98 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
FOR /F "tokens=* USEBACKQ" %%F IN (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" -latest -prerelease -products * -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe`) DO (
SET msbuild="%%F"
)
ECHO %msbuild%
@%msbuild% rdpWrapper.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="Any CPU"
if errorlevel 1 goto error
rem dotnet build rdpWrapper.sln -c Release -p:DebugType=None -p:Platform="Any CPU"
@%msbuild% rdpWrapper.sln /t:Rebuild /p:DebugType=None /p:Configuration=Release /p:Platform="Any CPU"
if errorlevel 1 goto error
if [%1]==[all] (
rem dotnet build rdpWrapper.sln -c ReleaseLite -p:DebugType=None -p:Platform="Any CPU"
@%msbuild% rdpWrapper.sln /t:Rebuild /p:DebugType=None /p:Configuration=ReleaseLite /p:Platform="Any CPU"
if errorlevel 1 goto error
@%msbuild% rdpWrapper.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="x64"
if errorlevel 1 goto error
rem dotnet build rdpWrapper.sln -c Release -p:DebugType=None -p:Platform="x64"
@%msbuild% rdpWrapper.sln /t:Rebuild /p:DebugType=None /p:Configuration=Release /p:Platform="x64"
if errorlevel 1 goto error
rem dotnet build rdpWrapper.sln -c ReleaseLite -p:DebugType=None -p:Platform="x64"
@%msbuild% rdpWrapper.sln /t:Rebuild /p:DebugType=None /p:Configuration=ReleaseLite /p:Platform="x64"
if errorlevel 1 goto error
@%msbuild% rdpWrapper.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="x86"
if errorlevel 1 goto error
rem dotnet build rdpWrapper.sln -c Release -p:DebugType=None -p:Platform="x86"
@%msbuild% rdpWrapper.sln /t:Rebuild /p:DebugType=None /p:Configuration=Release /p:Platform="x86"
if errorlevel 1 goto error
rem dotnet build rdpWrapper.sln -c ReleaseLite -p:DebugType=None -p:Platform="x86"
@%msbuild% rdpWrapper.sln /t:Rebuild /p:DebugType=None /p:Configuration=ReleaseLite /p:Platform="x86"
if errorlevel 1 goto error
)
if errorlevel 1 goto error
goto exit
:error
pause
:exit