Skip to content

Commit

Permalink
Add Build.cmd file to automate building of all Samples projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
jthelin committed Oct 15, 2015
1 parent 9723adc commit 5fc2b97
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Samples/Build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@REM NOTE: This script must be run from a Visual Studio command prompt window

@setlocal
@ECHO off

SET CMDHOME=%~dp0.
if "%FrameworkDir%" == "" set FrameworkDir=%WINDIR%\Microsoft.NET\Framework
if "%FrameworkVersion%" == "" set FrameworkVersion=v4.0.30319

SET MSBUILDEXEDIR=%FrameworkDir%\%FrameworkVersion%
SET MSBUILDEXE=%MSBUILDEXEDIR%\MSBuild.exe

cd %CMDHOME%

FOR /R %%I in (*.sln) do (
@Echo %%I

nuget restore %%I

"%MSBUILDEXE%" /verbosity:quiet %%I
)

0 comments on commit 5fc2b97

Please sign in to comment.