-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathmake.bat
More file actions
29 lines (23 loc) · 1.08 KB
/
make.bat
File metadata and controls
29 lines (23 loc) · 1.08 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
@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% OpenHardwareMonitor.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="Any CPU"
if errorlevel 1 goto error
@%msbuild% OpenHardwareMonitor.sln /t:Rebuild /p:Configuration=Release /p:Platform="Any CPU"
if errorlevel 1 goto error
if [%1]==[all] (
@%msbuild% OpenHardwareMonitor.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="x64"
if errorlevel 1 goto error
@%msbuild% OpenHardwareMonitor.sln /t:Rebuild /p:Configuration=Release /p:Platform="x64"
if errorlevel 1 goto error
@%msbuild% OpenHardwareMonitor.sln /t:restore /p:RestorePackagesConfig=true /p:Configuration=Release /p:Platform="x86"
if errorlevel 1 goto error
@%msbuild% OpenHardwareMonitor.sln /t:Rebuild /p:Configuration=Release /p:Platform="x86"
if errorlevel 1 goto error
)
goto exit
:error
pause
:exit