forked from OData/WebApi
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinit.cmd
More file actions
27 lines (19 loc) · 668 Bytes
/
init.cmd
File metadata and controls
27 lines (19 loc) · 668 Bytes
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
PUSHD %~dp0
set BUILDDIR=%CD%
rem set toolsets next to where we are
call :SetupToolsDir %BUILDDIR%\sln\packages
rem set MSBuildFrameworkToolsPath
set MSBuildFrameworkToolsPath=%windir%\Microsoft.Net\Framework\v4.0.30319
rem add it to the PATH, too
set PATH=%MSBuildFrameworkToolsPath%;%PATH%
rem set MSBuildLocation
set MSBuildLocation=%TOOLSDIR%\Msbuild.Corext.15.5.27130\v15.0\bin\msbuild.exe
rem now add msbuild dir
set PATH=%TOOLSDIR%\Msbuild.Corext.15.5.27130\v15.0\bin;%PATH%
rem add csc.exe dir
set PATH=%TOOLSDIR%\Msbuild.Corext.15.5.27130\v15.0\bin\Roslyn;%PATH%
exit
:SetupToolsDir
set TOOLSDIR=%~f1
if not exist %TOOLSDIR% mkdir %TOOLSDIR%
exit /b 0