Skip to content
This repository was archived by the owner on Jul 12, 2022. It is now read-only.

Commit 5cb0853

Browse files
author
Immo Landwerth
committed
Add basic build.cmd
1 parent 8ceb68c commit 5cb0853

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

build.cmd

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
@ECHO OFF
2+
3+
SETLOCAL
4+
5+
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
6+
SET SOLUTION_PATH=%~dp0src\BuildToolsInternal.sln
7+
8+
IF EXIST %CACHED_NUGET% goto restore
9+
echo Downloading latest version of NuGet.exe...
10+
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
11+
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
12+
13+
:restore
14+
IF EXIST "%~dp0src\packages" goto build
15+
%CACHED_NUGET% restore %SOLUTION_PATH%
16+
17+
:build
18+
19+
"%ProgramFiles(x86)%\MSBuild\12.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*

0 commit comments

Comments
 (0)