Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit50704d0

Browse files
committed
fix build on windows
1 parentff9672e commit50704d0

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

‎build.bat‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
11
@echooff
22

33
:: Check prerequisites
4-
set_msbuildexe="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe"
5-
ifnotexist%_msbuildexe%set_msbuildexe="%ProgramFiles%\MSBuild\14.0\Bin\MSBuild.exe"
6-
ifnotexist%_msbuildexe%set_msbuildexe="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
7-
ifnotexist%_msbuildexe%set_msbuildexe="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe"
8-
ifnotexist%_msbuildexe%echo Error: Could not find MSBuild.exe. Please see http://www.microsoft.com/en-us/download/details.aspx?id=40760.&&goto :eof
4+
ifexist"%VS150COMNTOOLS%\..\..\MSBuild\15.0\Bin\MSBuild.exe" (
5+
set_msbuildexe="%VS150COMNTOOLS%\..\..\MSBuild\15.0\Bin\MSBuild.exe"
6+
goto :havemsbuild
7+
)
8+
ifexist"%ProgramFiles(x86)%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe" (
9+
set_msbuildexe="%ProgramFiles(x86)%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe"
10+
goto :havemsbuild
11+
)
12+
ifexist"%ProgramFiles%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe" (
13+
set_msbuildexe="%ProgramFiles%\MSBuild\%VisualStudioVersion%\Bin\MSBuild.exe"
14+
goto :havemsbuild
15+
)
16+
echo Error: Could not find MSBuild.exe.&&goto :failure
17+
goto :eof
18+
19+
:havemsbuild
920

21+
echo"_msbuildexe=%_msbuildexe%"
1022
setmsbuildflags=/maxcpucount
1123
set_ngenexe="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\ngen.exe"
1224
ifnotexist%_ngenexe%echo Note: Could not find ngen.exe.
@@ -42,7 +54,7 @@ if /i "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
4254

4355
%_ngenexe% install .\.nuget\NuGet.exe
4456

45-
.\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages -ConfigFile.nuget\nuget.config
57+
.\.nuget\NuGet.exe restore packages.config -PackagesDirectory packages -ConfigFileNuGet.Config
4658
@if ERRORLEVEL1echo Error: Nuget restore failed&&goto :failure
4759

4860
%_ngenexe% install packages\FSharp.Compiler.Tools.4.1.27\tools\fsc.exe

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp