Skip to content

Commit d518f91

Browse files
authored
Merge pull request #582 from dsyme/integrate-80
Integrate all the latest from visualfsharp\master
2 parents 35d22f8 + 92360da commit d518f91

File tree

172 files changed

+15555
-11106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+15555
-11106
lines changed

.gitignore

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,62 @@
1+
/packages
2+
/Tools
3+
/src/*.userprefs
4+
/src/fsharp/FSStrings.resources
5+
/src/fsharp/FSharp.Build/*.resx
6+
/src/fsharp/FSharp.Build-proto/*.resx
7+
/src/fsharp/FSharp.Build-proto/*.resources
8+
/src/fsharp/FSharp.Compiler-proto/*.resx
9+
/src/fsharp/FSharp.Compiler-proto/*.resources
10+
/src/fsharp/FSharp.Compiler-proto/*.sln
11+
/src/fsharp/FSharp.Compiler-proto/*.userprefs
12+
/src/fsharp/fsi/*.resx
13+
/src/fsharp/FSharp.Compiler.Interactive.Settings/*.resx
14+
/src/fsharp/FSharp.Compiler.Server.Shared/*.resx
15+
/src/fsharp/fsi/Fsi.sln
16+
/src/fsharp/FSharp.Build/*.resources
17+
/src/fsharp/FSharp.Compiler/*.resx
18+
/src/fsharp/FSharp.Compiler/*.resources
19+
/src/fsharp/FSharp.Compiler/*.sln
20+
/src/fsharp/FSharp.Compiler/*.userprefs
21+
/src/*.log
22+
/src/fsharp/FSharp.Compiler/illex.fs
23+
/src/fsharp/FSharp.Compiler/ilpars.fs
24+
/src/fsharp/FSharp.Compiler/ilpars.fsi
25+
/src/fsharp/FSharp.Compiler/lex.fs
26+
/src/fsharp/FSharp.Compiler/pars.fs
27+
/src/fsharp/FSharp.Compiler/pars.fsi
28+
/src/fsharp/FSharp.Compiler/pplex.fs
29+
/src/fsharp/FSharp.Compiler/pppars.fs
30+
/src/fsharp/FSharp.Compiler/pppars.fsi
31+
/src/fsharp/FSharp.Compiler-proto/illex.fs
32+
/src/fsharp/FSharp.Compiler-proto/ilpars.fs
33+
/src/fsharp/FSharp.Compiler-proto/ilpars.fsi
34+
/src/fsharp/FSharp.Compiler-proto/lex.fs
35+
/src/fsharp/FSharp.Compiler-proto/pars.fs
36+
/src/fsharp/FSharp.Compiler-proto/pars.fsi
37+
/src/fsharp/FSharp.Compiler-proto/pplex.fs
38+
/src/fsharp/FSharp.Compiler-proto/pppars.fs
39+
/src/fsharp/FSharp.Compiler-proto/pppars.fsi
40+
/src/fsharp/FSharp.LanguageService.Compiler/illex.*
41+
/src/fsharp/FSharp.LanguageService.Compiler/ilpars.*
42+
/src/fsharp/FSharp.LanguageService.Compiler/lex.*
43+
/src/fsharp/FSharp.LanguageService.Compiler/pars.*
44+
/src/fsharp/FSharp.LanguageService.Compiler/pplex.fs
45+
/src/fsharp/FSharp.LanguageService.Compiler/pppars.fs
46+
/src/fsharp/FSharp.LanguageService.Compiler/pppars.fsi
47+
/vsintegration/src/unittests/Unittests.fsi
48+
/tests/*FSharp_Failures.env
49+
/tests/*FSharp_Failures.lst
50+
/tests/fsharpqa/Source/CodeGen/EmittedIL/StaticInit/StaticInit_Module01.dll
51+
/tests/fsharpqa/Source/CodeGen/EmittedIL/StaticInit/StaticInit_Module01.pdb
52+
/tests/XFSharpQA_Failures.log.*
53+
/vsintegration/src/vs/FsPkgs/FSharp.Project/FS/FSharp.ProjectSystem.FSharp.fsi
54+
/vsintegration/src/vs/FsPkgs/FSharp.Project/FS/ctofiles/
55+
/tests/fsharpqa/Source/CodeGen/EmittedIL/QueryExpressionStepping/Utils.dll
56+
/tests/fsharpqa/Source/CodeGen/EmittedIL/ComputationExpressions/ComputationExprLibrary.dll
57+
/tests/fsharpqa/Source/*FSharpQA_Failures.env
58+
/tests/fsharpqa/Source/*FSharpQA_Failures.lst
59+
/tests/**/FSharp.Core.dll
160
lib/debug
261
lib/release
362
lib/proto
@@ -60,8 +119,6 @@ src/fsharp/FSharp.Compiler-proto/pplex.fs
60119
src/fsharp/FSharp.Compiler-proto/pppars.fs
61120
src/fsharp/FSharp.Compiler-proto/pppars.fsi
62121
*~
63-
tests/projects/Sample_VS2012_FSharp_ConsoleApp_net45_with_resource/Sample_VS2012_FSharp_ConsoleApp_net45/Sample_VS2012_FSharp_ConsoleApp_net45.sln
64-
tests/projects/Sample_VS2012_FSharp_ConsoleApp_net45_with_resource/Sample_VS2012_FSharp_ConsoleApp_net45/Sample_VS2012_FSharp_ConsoleApp_net45.userprefs
65122
*.suo
66123
obj
67124
src/fsharp/FSharp.Data.TypeProviders/FSData.resx
@@ -145,6 +202,7 @@ FSharp.Core.Nuget/*.nupkg
145202
*.mdf
146203
*.ldf
147204
*.cto
148-
tests/**/FSharp.Core.dll
205+
*.vstman
149206
project.lock.json
150207
Tools/
208+
Backup/

BuildToolsVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.25-prerelease-00404-01
1+
1.0.25-prerelease-00517-05

DotnetCLIVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0-rc2-002665
1+
1.0.0-preview2-003121

build-everything.proj

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,54 @@
11
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
33

4-
<ItemGroup Condition="'$(BUILD_NET40)'=='1'">
4+
<ItemGroup Condition="'$(BUILD_NET40)'=='1' or '$(BUILD_ALL)'=='1'">
55
<ProjectsWithDefaultFramework Include="src/fsharp-library-build.proj" />
66
<ProjectsWithDefaultFramework Include="src/fsharp-compiler-build.proj" />
77
</ItemGroup>
88

99
<ItemGroup>
10-
<ProjectsWithDefaultFramework Include="src/fsharp-library-unittests-build.proj" Condition="'$(TEST_NET40_COREUNIT)'=='1'" />
11-
<ProjectsWithDefaultFramework Include="src/fsharp-compiler-unittests-build.proj" Condition="'$(TEST_COMPILERUNIT)'=='1'" />
12-
<ProjectsWithDefaultFramework Include="tests/fsharp/FSharp.Tests.fsproj" Condition="'$(TEST_FSHARP_SUITE)'=='1'" />
10+
<ProjectsWithDefaultFramework Include="src/fsharp-library-unittests-build.proj" Condition="'$(TEST_NET40_COREUNIT)'=='1' or '$(BUILD_ALL)'=='1'" />
11+
<ProjectsWithDefaultFramework Include="src/fsharp-compiler-unittests-build.proj" Condition="'$(TEST_COMPILERUNIT)'=='1' or '$(BUILD_ALL)'=='1'" />
12+
<ProjectsWithDefaultFramework Include="tests/fsharp/FSharp.Tests.fsproj" Condition="'$(TEST_FSHARP_SUITE)'=='1' or '$(BUILD_ALL)'=='1'" />
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<ProjectsWithPortableFramework Include="src/fsharp-library-build.proj" Condition="'$(BUILD_PORTABLE)'=='1'"/>
17-
<ProjectsWithPortableFramework Include="src/fsharp-library-unittests-build.proj" Condition="'$(TEST_PORTABLE_COREUNIT)'=='1'" />
16+
<ProjectsWithPortableFramework Include="src/fsharp-library-build.proj" Condition="'$(BUILD_PORTABLE)'=='1' or '$(BUILD_ALL)'=='1'"/>
17+
<ProjectsWithPortableFramework Include="src/fsharp-library-unittests-build.proj" Condition="'$(TEST_PORTABLE_COREUNIT)'=='1' or '$(BUILD_ALL)'=='1'" />
1818
</ItemGroup>
1919

20-
<ItemGroup Condition="'$(BUILD_VS)'=='1'">
20+
<ItemGroup Condition="'$(BUILD_VS)'=='1' or '$(BUILD_ALL)'=='1'">
2121
<ProjectsWithDefaultFramework Include="vsintegration/fsharp-vsintegration-src-build.proj" />
2222
<ProjectsWithDefaultFramework Include="vsintegration/fsharp-vsintegration-project-templates-build.proj" />
2323
<ProjectsWithDefaultFramework Include="vsintegration/fsharp-vsintegration-item-templates-build.proj" />
24-
<ProjectsWithDefaultFramework Include="vsintegration/fsharp-vsintegration-deployment-build.proj" />
24+
<ProjectsWithDefaultFramework Include="vsintegration/fsharp-vsintegration-vsix-build.proj" />
2525
</ItemGroup>
2626

2727
<ItemGroup>
28-
<ProjectsWithDefaultFramework Include="vsintegration/fsharp-vsintegration-unittests-build.proj" Condition="'$(TEST_VS)'=='1'" />
28+
<ProjectsWithDefaultFramework Include="vsintegration/fsharp-vsintegration-unittests-build.proj" Condition="'$(TEST_VS)'=='1' or '$(BUILD_ALL)'=='1'" />
2929
</ItemGroup>
3030

31-
<ItemGroup Condition="'$(BUILD_CORECLR)'=='1'">
31+
<ItemGroup Condition="'$(BUILD_CORECLR)'=='1' or '$(BUILD_ALL)'=='1'">
3232
<ProjectsWithCoreClr Include="src/fsharp-library-build.proj" />
3333
<ProjectsWithCoreClr Include="src/fsharp-compiler-build.proj" />
3434
</ItemGroup>
3535

3636
<ItemGroup>
37-
<ProjectsWithCoreClr Include="src/fsharp-library-unittests-build.proj" Condition="'$(TEST_CORECLR)'=='1'" />
37+
<ProjectsWithCoreClr Include="src/fsharp-library-unittests-build.proj" Condition="'$(TEST_CORECLR)'=='1' or '$(BUILD_ALL)'=='1'" />
3838
</ItemGroup>
3939

40+
<ItemGroup Condition="'$(BUILD_SETUP)'=='1' or '$(BUILD_ALL)'=='1'">
41+
<SetupProjects Include="setup/fsharp-setup-build.proj" />
42+
</ItemGroup>
43+
4044
<Target Name="Build">
4145
<MSBuild Projects="@(ProjectsWithDefaultFramework)" Targets="Build" BuildInParallel="true" Properties="Configuration=$(Configuration)" />
4246
<MSBuild Projects="@(ProjectsWithPortableFramework)" Targets="Build" BuildInParallel="true" Properties="Configuration=$(Configuration);TargetFramework=portable7" />
4347
<MSBuild Projects="@(ProjectsWithPortableFramework)" Targets="Build" BuildInParallel="true" Properties="Configuration=$(Configuration);TargetFramework=portable47" />
4448
<MSBuild Projects="@(ProjectsWithPortableFramework)" Targets="Build" BuildInParallel="true" Properties="Configuration=$(Configuration);TargetFramework=portable78" />
4549
<MSBuild Projects="@(ProjectsWithPortableFramework)" Targets="Build" BuildInParallel="true" Properties="Configuration=$(Configuration);TargetFramework=portable259" />
4650
<MSBuild Projects="@(ProjectsWithCoreClr)" Targets="Build" BuildInParallel="false" Properties="Configuration=$(Configuration);TargetFramework=coreclr" />
51+
<MSBuild Projects="@(SetupProjects)" Targets="Build" BuildInParallel="false" Properties="Configuration=$(Configuration)" />
4752
</Target>
4853

4954
<Target Name="Rebuild">
@@ -53,6 +58,7 @@
5358
<MSBuild Projects="@(ProjectsWithPortableFramework)" Targets="Rebuild" BuildInParallel="true" Properties="Configuration=$(Configuration);TargetFramework=portable78" />
5459
<MSBuild Projects="@(ProjectsWithPortableFramework)" Targets="Rebuild" BuildInParallel="true" Properties="Configuration=$(Configuration);TargetFramework=portable259" />
5560
<MSBuild Projects="@(ProjectsWithCoreClr)" Targets="Rebuild" BuildInParallel="false" Properties="Configuration=$(Configuration);TargetFramework=coreclr" />
61+
<MSBuild Projects="@(SetupProjects)" Targets="Rebuild" BuildInParallel="false" Properties="Configuration=$(Configuration)" />
5662
</Target>
5763

5864
<Target Name="Clean">
@@ -62,5 +68,6 @@
6268
<MSBuild Projects="@(ProjectsWithPortableFramework)" Targets="Clean" BuildInParallel="true" Properties="Configuration=$(Configuration);TargetFramework=portable78" />
6369
<MSBuild Projects="@(ProjectsWithPortableFramework)" Targets="Clean" BuildInParallel="true" Properties="Configuration=$(Configuration);TargetFramework=portable259" />
6470
<MSBuild Projects="@(ProjectsWithCoreClr)" Targets="Clean" BuildInParallel="false" Properties="Configuration=$(Configuration);TargetFramework=coreclr" />
71+
<MSBuild Projects="@(SetupProjects)" Targets="Clean" BuildInParallel="false" Properties="Configuration=$(Configuration)" />
6572
</Target>
6673
</Project>

init-tools.cmd

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ if [%TOOLRUNTIME_DIR%]==[] set TOOLRUNTIME_DIR=%~dp0Tools
77
set DOTNET_PATH=%TOOLRUNTIME_DIR%\dotnetcli\
88
if [%DOTNET_CMD%]==[] set DOTNET_CMD=%DOTNET_PATH%dotnet.exe
99
if [%BUILDTOOLS_SOURCE%]==[] set BUILDTOOLS_SOURCE=https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
10-
set /P BUILDTOOLS_VERSION=< %~dp0BuildToolsVersion.txt
10+
set /P BUILDTOOLS_VERSION=< "%~dp0BuildToolsVersion.txt"
1111
set BUILD_TOOLS_PATH=%PACKAGES_DIR%Microsoft.DotNet.BuildTools\%BUILDTOOLS_VERSION%\lib\
1212
set PROJECT_JSON_PATH=%TOOLRUNTIME_DIR%\%BUILDTOOLS_VERSION%
1313
set PROJECT_JSON_FILE=%PROJECT_JSON_PATH%\project.json
14-
set PROJECT_JSON_CONTENTS={ "dependencies": { "Microsoft.DotNet.BuildTools": "%BUILDTOOLS_VERSION%" }, "frameworks": { "dnxcore50": { } } }
14+
set PROJECT_JSON_CONTENTS={ "dependencies": { "Microsoft.DotNet.BuildTools": "%BUILDTOOLS_VERSION%" }, "frameworks": { "netcoreapp1.0": { } } }
1515
set BUILD_TOOLS_SEMAPHORE=%PROJECT_JSON_PATH%\init-tools.completed
1616

1717
:: if force option is specified then clean the tool runtime and build tools package directory to force it to get recreated
@@ -29,40 +29,45 @@ if exist "%BUILD_TOOLS_SEMAPHORE%" (
2929
if exist "%TOOLRUNTIME_DIR%" rmdir /S /Q "%TOOLRUNTIME_DIR%"
3030

3131
if NOT exist "%PROJECT_JSON_PATH%" mkdir "%PROJECT_JSON_PATH%"
32-
echo %PROJECT_JSON_CONTENTS% > %PROJECT_JSON_FILE%
33-
echo Running %0 > %INIT_TOOLS_LOG%
32+
echo %PROJECT_JSON_CONTENTS% > "%PROJECT_JSON_FILE%"
33+
echo Running %0 > "%INIT_TOOLS_LOG%"
3434

3535
if exist "%DOTNET_CMD%" goto :afterdotnetrestore
3636

3737
echo Installing dotnet cli...
3838
if NOT exist "%DOTNET_PATH%" mkdir "%DOTNET_PATH%"
39-
set /p DOTNET_VERSION=< %~dp0DotnetCLIVersion.txt
39+
set /p DOTNET_VERSION=< "%~dp0DotnetCLIVersion.txt"
4040
set DOTNET_ZIP_NAME=dotnet-dev-win-x64.%DOTNET_VERSION%.zip
41-
set DOTNET_REMOTE_PATH=https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/%DOTNET_VERSION%/%DOTNET_ZIP_NAME%
41+
set DOTNET_REMOTE_PATH=https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/%DOTNET_VERSION%/%DOTNET_ZIP_NAME%
4242
set DOTNET_LOCAL_PATH=%DOTNET_PATH%%DOTNET_ZIP_NAME%
43-
echo Installing '%DOTNET_REMOTE_PATH%' to '%DOTNET_LOCAL_PATH%' >> %INIT_TOOLS_LOG%
44-
powershell -NoProfile -ExecutionPolicy unrestricted -Command "(New-Object Net.WebClient).DownloadFile('%DOTNET_REMOTE_PATH%', '%DOTNET_LOCAL_PATH%'); Add-Type -Assembly 'System.IO.Compression.FileSystem' -ErrorVariable AddTypeErrors; if ($AddTypeErrors.Count -eq 0) { [System.IO.Compression.ZipFile]::ExtractToDirectory('%DOTNET_LOCAL_PATH%', '%DOTNET_PATH%') } else { (New-Object -com shell.application).namespace('%DOTNET_PATH%').CopyHere((new-object -com shell.application).namespace('%DOTNET_LOCAL_PATH%').Items(),16) }" >> %INIT_TOOLS_LOG%
43+
echo Installing '%DOTNET_REMOTE_PATH%' to '%DOTNET_LOCAL_PATH%' >> "%INIT_TOOLS_LOG%"
44+
powershell -NoProfile -ExecutionPolicy unrestricted -Command "$retryCount = 0; $success = $false; do { try { (New-Object Net.WebClient).DownloadFile('%DOTNET_REMOTE_PATH%', '%DOTNET_LOCAL_PATH%'); $success = $true; } catch { if ($retryCount -ge 6) { throw; } else { $retryCount++; Start-Sleep -Seconds (5 * $retryCount); } } } while ($success -eq $false); Add-Type -Assembly 'System.IO.Compression.FileSystem' -ErrorVariable AddTypeErrors; if ($AddTypeErrors.Count -eq 0) { [System.IO.Compression.ZipFile]::ExtractToDirectory('%DOTNET_LOCAL_PATH%', '%DOTNET_PATH%') } else { (New-Object -com shell.application).namespace('%DOTNET_PATH%').CopyHere((new-object -com shell.application).namespace('%DOTNET_LOCAL_PATH%').Items(),16) }" >> "%INIT_TOOLS_LOG%"
4545
if NOT exist "%DOTNET_LOCAL_PATH%" (
4646
echo ERROR: Could not install dotnet cli correctly. See '%INIT_TOOLS_LOG%' for more details.
47-
goto :EOF
47+
exit /b 1
4848
)
4949

5050
:afterdotnetrestore
5151

5252
if exist "%BUILD_TOOLS_PATH%" goto :afterbuildtoolsrestore
5353
echo Restoring BuildTools version %BUILDTOOLS_VERSION%...
54-
echo Running: "%DOTNET_CMD%" restore "%PROJECT_JSON_FILE%" --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" >> %INIT_TOOLS_LOG%
55-
call "%DOTNET_CMD%" restore "%PROJECT_JSON_FILE%" --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" >> %INIT_TOOLS_LOG%
54+
echo Running: "%DOTNET_CMD%" restore "%PROJECT_JSON_FILE%" --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" >> "%INIT_TOOLS_LOG%"
55+
call "%DOTNET_CMD%" restore "%PROJECT_JSON_FILE%" --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" >> "%INIT_TOOLS_LOG%"
5656
if NOT exist "%BUILD_TOOLS_PATH%init-tools.cmd" (
5757
echo ERROR: Could not restore build tools correctly. See '%INIT_TOOLS_LOG%' for more details.
58-
goto :EOF
58+
exit /b 1
5959
)
6060

6161
:afterbuildtoolsrestore
6262

6363
echo Initializing BuildTools ...
64-
echo Running: "%BUILD_TOOLS_PATH%init-tools.cmd" "%~dp0" "%DOTNET_CMD%" "%TOOLRUNTIME_DIR%" >> %INIT_TOOLS_LOG%
65-
call "%BUILD_TOOLS_PATH%init-tools.cmd" "%~dp0" "%DOTNET_CMD%" "%TOOLRUNTIME_DIR%" >> %INIT_TOOLS_LOG%
64+
echo Running: "%BUILD_TOOLS_PATH%init-tools.cmd" "%~dp0" "%DOTNET_CMD%" "%TOOLRUNTIME_DIR%" >> "%INIT_TOOLS_LOG%"
65+
call "%BUILD_TOOLS_PATH%init-tools.cmd" "%~dp0" "%DOTNET_CMD%" "%TOOLRUNTIME_DIR%" >> "%INIT_TOOLS_LOG%"
66+
set INIT_TOOLS_ERRORLEVEL=%ERRORLEVEL%
67+
if not [%INIT_TOOLS_ERRORLEVEL%]==[0] (
68+
echo ERROR: An error occured when trying to initialize the tools. Please check '%INIT_TOOLS_LOG%' for more details.
69+
exit /b %INIT_TOOLS_ERRORLEVEL%
70+
)
6671

6772
:: Create sempahore file
6873
echo Done initializing tools.

init-tools.sh

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ __DOTNET_TOOLS_VERSION=$(cat $__scriptpath/DotnetCLIVersion.txt)
1212
__BUILD_TOOLS_PATH=$__PACKAGES_DIR/Microsoft.DotNet.BuildTools/$__BUILD_TOOLS_PACKAGE_VERSION/lib
1313
__PROJECT_JSON_PATH=$__TOOLRUNTIME_DIR/$__BUILD_TOOLS_PACKAGE_VERSION
1414
__PROJECT_JSON_FILE=$__PROJECT_JSON_PATH/project.json
15-
__PROJECT_JSON_CONTENTS="{ \"dependencies\": { \"Microsoft.DotNet.BuildTools\": \"$__BUILD_TOOLS_PACKAGE_VERSION\" }, \"frameworks\": { \"dnxcore50\": { } } }"
15+
__PROJECT_JSON_CONTENTS="{ \"dependencies\": { \"Microsoft.DotNet.BuildTools\": \"$__BUILD_TOOLS_PACKAGE_VERSION\" }, \"frameworks\": { \"netcoreapp1.0\": { } } }"
1616

1717
OSName=$(uname -s)
1818
case $OSName in
@@ -24,14 +24,12 @@ case $OSName in
2424

2525
Linux)
2626
OS=Linux
27-
source /etc/os-release
28-
if [ "$ID" == "centos" -o "$ID" == "rhel" ]; then
29-
__DOTNET_PKG=dotnet-dev-centos-x64
30-
elif [ "$ID" == "ubuntu" -o "$ID" == "debian" ]; then
31-
__DOTNET_PKG=dotnet-dev-ubuntu-x64
27+
if [ ! -e /etc/os-release ]; then
28+
echo "Cannot determine Linux distribution, asuming Ubuntu 14.04."
29+
__DOTNET_PKG=dotnet-dev-ubuntu.14.04-x64
3230
else
33-
echo "Unsupported Linux distribution '$ID' detected. Downloading ubuntu-x64 tools."
34-
__DOTNET_PKG=dotnet-dev-ubuntu-x64
31+
source /etc/os-release
32+
__DOTNET_PKG="dotnet-dev-$ID.$VERSION_ID-x64"
3533
fi
3634
;;
3735

@@ -47,24 +45,18 @@ if [ ! -e $__PROJECT_JSON_FILE ]; then
4745
echo "Running: $__scriptpath/init-tools.sh" > $__init_tools_log
4846
if [ ! -e $__DOTNET_PATH ]; then
4947
echo "Installing dotnet cli..."
50-
__DOTNET_LOCATION="https://dotnetcli.blob.core.windows.net/dotnet/beta/Binaries/${__DOTNET_TOOLS_VERSION}/${__DOTNET_PKG}.${__DOTNET_TOOLS_VERSION}.tar.gz"
48+
__DOTNET_LOCATION="https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/${__DOTNET_TOOLS_VERSION}/${__DOTNET_PKG}.${__DOTNET_TOOLS_VERSION}.tar.gz"
5149
# curl has HTTPS CA trust-issues less often than wget, so lets try that first.
5250
echo "Installing '${__DOTNET_LOCATION}' to '$__DOTNET_PATH/dotnet.tar'" >> $__init_tools_log
5351
which curl > /dev/null 2> /dev/null
5452
if [ $? -ne 0 ]; then
5553
mkdir -p "$__DOTNET_PATH"
5654
wget -q -O $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
5755
else
58-
curl -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
56+
curl --retry 10 -sSL --create-dirs -o $__DOTNET_PATH/dotnet.tar ${__DOTNET_LOCATION}
5957
fi
6058
cd $__DOTNET_PATH
6159
tar -xf $__DOTNET_PATH/dotnet.tar
62-
if [ -n "$BUILDTOOLS_OVERRIDE_RUNTIME" ]; then
63-
find $__DOTNET_PATH -name *.ni.* | xargs rm 2>/dev/null
64-
cp -R $BUILDTOOLS_OVERRIDE_RUNTIME/* $__DOTNET_PATH/bin
65-
cp -R $BUILDTOOLS_OVERRIDE_RUNTIME/* $__DOTNET_PATH/bin/dnx
66-
cp -R $BUILDTOOLS_OVERRIDE_RUNTIME/* $__DOTNET_PATH/runtime/coreclr
67-
fi
6860

6961
cd $__scriptpath
7062
fi
@@ -82,6 +74,10 @@ if [ ! -e $__PROJECT_JSON_FILE ]; then
8274
echo "Initializing BuildTools..."
8375
echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR" >> $__init_tools_log
8476
$__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR >> $__init_tools_log
77+
if [ "$?" != "0" ]; then
78+
echo "ERROR: An error occured when trying to initialize the tools. Please check '$__init_tools_log' for more details."
79+
exit 1
80+
fi
8581
echo "Done initializing tools."
8682
else
8783
echo "Tools are already initialized"

packages.config

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@
88
<package id="NUnit.Console" version="3.0.0" targetFramework="net45" />
99
<package id="NUnitLite" version="3.0.0" targetFramework="net45" />
1010
<package id="NUnit3TestAdapter" version="3.0.8-ctp-8" targetFramework="net45" />
11-
<package id="System.Collections.Immutable" version="1.2.0-rc3-23805" />
12-
<package id="System.Reflection.Metadata" version="1.3.0-beta-23816" />
13-
<package id="Microsoft.DiaSymReader.PortablePdb" version="1.0.0-rc-60301" />
14-
<package id="Microsoft.DiaSymReader" version="1.0.7" />
11+
<package id="System.Collections.Immutable" version="1.2.0" />
12+
<package id="System.Reflection.Metadata" version="1.4.1-beta-24227-04" />
13+
<package id="Microsoft.DiaSymReader.PortablePdb" version="1.1.0" />
14+
<package id="Microsoft.DiaSymReader" version="1.0.8" />
1515
<package id="FsSrGen" version="3.0.0" targetFramework="net46" />
1616
<package id="FSharp.SRGen.Build.Tasks" version="3.0.0" targetFramework="net46" />
17+
<package id="MicroBuild.Core" version="0.2.0" />
18+
<package id="WiX.Toolset.2015" version="3.10.0.1503" />
19+
<package id="Microsoft.VisualFSharp.Core.Redist" version="1.0.0" />
20+
<package id="Microsoft.VisualFSharp.Type.Providers.Redist" version="1.0.0" />
1721
</packages>

0 commit comments

Comments
 (0)