Last active
September 8, 2015 18:32
-
-
Save SjB/39c3d41b3e61906c837c to your computer and use it in GitHub Desktop.
Windows csharp build script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo Off | |
setlocal | |
set NUGETURL="http://nuget.org/nuget.exe" | |
set TOOLSDIR=tools | |
set NUGET=%TOOLSDIR%\NuGet.exe | |
set CAKE=%TOOLSDIR%\Cake\Cake.exe | |
IF NOT EXIST %TOOLSDIR% mkdir %TOOLSDIR% | |
IF NOT EXIST %NUGET% ( | |
powershell -Command "(new-object System.Net.WebClient).DownloadFile(\"%NUGETURL%\", \"%NUGET%\");" | |
) | |
IF NOT EXIST %CAKE% ( | |
%NUGET% install Cake -OutputDirectory Tools -ExcludeVersion | |
) | |
%CAKE% build.cake %* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment