forked from lextudio/sharpsnmplib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.bat
16 lines (15 loc) · 821 Bytes
/
release.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
:: http://stackoverflow.com/questions/328017/path-to-msbuild
:: http://www.csharp411.com/where-to-find-msbuild-exe/
:: http://timrayburn.net/blog/visual-studio-2013-and-msbuild/
:: http://blogs.msdn.com/b/visualstudio/archive/2013/07/24/msbuild-is-now-part-of-visual-studio.aspx
for %%v in (2.0, 3.5, 4.0, 12.0, 14.0) do (
for /f "usebackq tokens=2* delims= " %%c in (`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\%%v" /v MSBuildToolsPath`) do (
set msBuildExe=%%dMSBuild.exe
)
)
rmdir /S /Q bin
mkdir bin
.nuget\nuget.exe restore SharpSnmpLib.Classic.sln
call "%MSBuildExe%" SharpSnmpLib.Classic.sln /t:clean /p:Configuration=Release /p:OutputPath=..\bin\
call "%MSBuildExe%" SharpSnmpLib.Classic.sln /t:build /p:Configuration=Release /p:OutputPath=..\bin\
@IF %ERRORLEVEL% NEQ 0 PAUSE