Skip to content

Commit a26fcf0

Browse files
Synced all shared scripts to CoreFx latest changes.
* I did not include changes related to a change by Davis in CoreFx PR #10868
1 parent 4852d19 commit a26fcf0

8 files changed

+109
-71
lines changed

BuildToolsVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.26-prerelease-00621-06
1+
1.0.26-prerelease-00730-03

Packaging.props

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PackageDescriptionFile>$(ProjectDir)pkg/descriptions.json</PackageDescriptionFile>
55
<PackageLicenseFile>$(ProjectDir)pkg/dotnet_library_license.txt</PackageLicenseFile>
66
<PackageThirdPartyNoticesFile>$(ProjectDir)pkg/ThirdPartyNotices.txt</PackageThirdPartyNoticesFile>
7-
7+
<RuntimeIdGraphDefinitionFile>$(ProjectDir)pkg/Microsoft.NETCore.Platforms/runtime.json</RuntimeIdGraphDefinitionFile>
88
<ReleaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</ReleaseNotes>
99
<ProjectUrl>https://dot.net</ProjectUrl>
1010
<!-- Add a condition for this when we are able to run on .NET Core -->
@@ -17,10 +17,13 @@
1717
<!-- We're currently not building a "live" baseline, instead we're using .NETCore 1.0 RTM stable versions as the baseline -->
1818
<SkipBaseLineCheck>true</SkipBaseLineCheck>
1919
<!-- temporary change until buildtools can be updated https://github.com/dotnet/buildtools/issues/831 -->
20-
<LineupPackageVersion Condition="'$(LineupPackageVersion)' == ''">1.0.2</LineupPackageVersion>
20+
<LineupPackageVersion Condition="'$(LineupPackageVersion)' == ''">1.0.3</LineupPackageVersion>
2121
<PlatformPackageVersion Condition="'$(PlatformPackageVersion)' == ''">1.0.2</PlatformPackageVersion>
22-
</PropertyGroup>
2322

23+
<!-- by default all packages will use the same version which revs with respect to product version -->
24+
<PackageVersion Condition="'$(PackageVersion)' == ''">4.3.0</PackageVersion>
25+
</PropertyGroup>
26+
2427
<Import Condition="Exists('pkg/baseline/baseline.props')" Project="pkg/baseline/baseline.props" />
2528

2629
<PropertyGroup Condition="'$(OsEnvironment)'=='Unix'">

build.proj

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
</PropertyGroup>
3131
<Import Project="$(ToolsDir)CodeCoverage.targets" Condition="Exists('$(ToolsDir)CodeCoverage.targets')" />
3232
<Import Project="$(ToolsDir)PerfTesting.targets" Condition="Exists('$(ToolsDir)PerfTesting.targets') and '$(Performance)' == 'true'"/>
33+
<Import Project="$(ToolsDir)VersionTools.targets" Condition="Exists('$(ToolsDir)VersionTools.targets')" />
3334

3435
<ItemGroup>
3536
<Project Include="src\dirs.proj">
@@ -80,7 +81,12 @@
8081

8182
<Message Importance="High" Text="[$([System.DateTime]::Now.ToString('HH:mm:ss.ff'))] Restoring all packages..." />
8283

84+
<IsRestoreRequired ProjectJsons="@(ProjectJsonFiles)" PackagesFolder="$(PackagesDir)">
85+
<Output TaskParameter="RestoreRequired" PropertyName="RestoreRequired" />
86+
</IsRestoreRequired>
87+
8388
<Exec Command="$(DnuRestoreCommand) @(DnuRestoreDir->'&quot;%(Identity)&quot;', ' ')"
89+
Condition="'$(RestoreRequired)' == 'true'"
8490
StandardOutputImportance="Low"
8591
CustomErrorRegularExpression="(^Unable to locate .*)|(^Updating the invalid lock file with .*)"
8692
ContinueOnError="ErrorAndContinue" />
@@ -121,7 +127,7 @@
121127

122128
<!-- Task from buildtools that uses lockfiles to validate that packages restored are exactly what were specified. -->
123129
<UsingTask TaskName="ValidateExactRestore" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll" />
124-
130+
125131
<Target Name="ValidateExactRestore"
126132
Condition="'$(AllowInexactRestore)'!='true'">
127133
<ValidateExactRestore ProjectLockJsons="@(ProjectJsonFiles->'%(RootDir)%(Directory)%(Filename).lock.json')" />
@@ -137,6 +143,28 @@
137143
NewVersion="$(NewVersion)" />
138144
</Target>
139145

146+
<!-- Packages.zip creation -->
147+
<UsingTask TaskName="ZipFileCreateFromDependencyLists" Condition="'$(ArchiveTests)' == 'true'" AssemblyFile="$(BuildToolsTaskDir)Microsoft.DotNet.Build.Tasks.dll"/>
148+
<Target Name="ArchiveTestBuild" Condition="'$(ArchiveTests)' == 'true'" AfterTargets="Build" >
149+
<ItemGroup>
150+
<ExcludeFromArchive Include="nupkg$" />
151+
<ExcludeFromArchive Include="Microsoft.DotNet.BuildTools" />
152+
<ExcludeFromArchive Include="TestData" />
153+
<TestDependencyListFile Include="$(BinDir)/TestDependencies/*.dependencylist.txt" />
154+
</ItemGroup>
155+
156+
<PropertyGroup>
157+
<TestArchiveDir>$(TestWorkingDir)$(OSPlatformConfig)/archive/tests/</TestArchiveDir>
158+
<TestArchiveDir Condition="'$(TestTFM)' != ''">$(TestArchiveDir)$(TestTFM)/</TestArchiveDir>
159+
</PropertyGroup>
160+
161+
<ZipFileCreateFromDependencyLists
162+
DependencyListFiles="@(TestDependencyListFile)"
163+
DestinationArchive="$(TestArchiveDir)\Packages.zip"
164+
RelativePathBaseDirectory="$(PackagesDir)"
165+
OverwriteDestination="true" />
166+
</Target>
167+
140168
<!-- Override RestorePackages from dir.traversal.targets and do a batch restore -->
141169
<Target Name="RestorePackages" DependsOnTargets="BatchRestorePackages" />
142170

dir.props

Lines changed: 22 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<Import Condition="Exists('..\dir.props')" Project="..\dir.props" />
44

5+
<!-- We shipped assembly file version 4.6.x up until the end of rc3. Version assembly as
6+
4.6.x to ensure compatability in Visual Studio for an in-place update. -->
7+
<PropertyGroup>
8+
<MajorVersion>4</MajorVersion>
9+
<MinorVersion>6</MinorVersion>
10+
</PropertyGroup>
511
<!--
612
$(OS) is set to Unix/Windows_NT. This comes from an environment variable on Windows and MSBuild on Unix.
713
-->
@@ -12,19 +18,13 @@
1218
</PropertyGroup>
1319

1420
<PropertyGroup>
15-
<XunitPerfAnalysisPackageVersion>1.0.0-alpha-build0037</XunitPerfAnalysisPackageVersion>
21+
<XunitPerfAnalysisPackageVersion>1.0.0-alpha-build0040</XunitPerfAnalysisPackageVersion>
1622
</PropertyGroup>
1723

1824
<PropertyGroup>
1925
<InputOSGroup Condition="'$(InputOSGroup)'==''">$(OSEnvironment)</InputOSGroup>
2026
</PropertyGroup>
2127

22-
<!-- Build Tools Versions -->
23-
<PropertyGroup>
24-
<RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion>
25-
<RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName>
26-
</PropertyGroup>
27-
2828
<!-- Informs build tools to apply .NET Framework metadata if not a test project -->
2929
<PropertyGroup>
3030
<IsDotNetFrameworkProductAssembly>true</IsDotNetFrameworkProductAssembly>
@@ -49,32 +49,17 @@
4949

5050
<!-- Input Directories -->
5151
<PackagesDir Condition="'$(PackagesDir)'==''">$(ProjectDir)packages/</PackagesDir>
52-
<ToolRuntimePath Condition="'$(ToolRuntimePath)'==''">$(ProjectDir)Tools/</ToolRuntimePath>
5352
<ToolsDir Condition="'$(UseToolRuntimeForToolsDir)'=='true'">$(ToolRuntimePath)</ToolsDir>
5453
<ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools/</ToolsDir>
55-
<DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolRuntimePath)dotnetcli/</DotnetCliPath>
56-
<OverrideToolHost>$(DotnetCliPath)dotnet</OverrideToolHost>
57-
<BuildToolsTaskDir Condition="'$(BuildToolsTargets45)' == 'true'">$(ToolsDir)net45/</BuildToolsTaskDir>
58-
<BuildToolsTaskDir Condition="'$(BuildToolsTaskDir)'==''">$(ToolsDir)</BuildToolsTaskDir>
59-
<UseRoslynCompilers Condition="'$(UseRoslynCompilers)'=='' and '$(OSEnvironment)'!='Windows_NT'">false</UseRoslynCompilers>
54+
<ToolRuntimePath Condition="'$(ToolRuntimePath)'==''">$(ToolsDir)</ToolRuntimePath>
6055
</PropertyGroup>
6156

6257
<Import Project="$(ToolRuntimePath)BuildVersion.targets" Condition="Exists('$(ToolRuntimePath)BuildVersion.targets')" />
6358

6459
<PropertyGroup>
65-
<!-- temporarily increase assembly version of corefx impl of desktop inbox contracts to allow folks
66-
to move to the latest packages. Remove once the full stack is on the latest packages
67-
https://github.com/dotnet/corefx/issues/7114 -->
68-
<AssemblyVersionTransition>true</AssemblyVersionTransition>
6960
<GenFacadesArgs>-ignoreBuildAndRevisionMismatch</GenFacadesArgs>
7061
</PropertyGroup>
7162

72-
<!-- Use Roslyn Compilers to build -->
73-
<PropertyGroup Condition="'$(UseRoslynCompilers)'!='false'">
74-
<UseSharedCompilation>true</UseSharedCompilation>
75-
</PropertyGroup>
76-
<Import Project="$(ToolRuntimePath)/net45/roslyn/build/Microsoft.Net.Compilers.props" Condition="'$(UseRoslynCompilers)'!='false' AND Exists('$(ToolRuntimePath)/net45/roslyn/build/Microsoft.Net.Compilers.props')" />
77-
7863
<!-- Import Build tools common props file where repo-independent properties are found -->
7964
<Import Project="$(ToolsDir)Build.Common.props" Condition="Exists('$(ToolsDir)Build.Common.props')" />
8065

@@ -197,37 +182,6 @@
197182
<RestorePackages>false</RestorePackages>
198183
</PropertyGroup>
199184

200-
<!--
201-
On Unix we always use a version of Roslyn we restore from NuGet and we have to work around some known issues.
202-
-->
203-
<PropertyGroup Condition="'$(OsEnvironment)'=='Unix'">
204-
<RoslynPackageDir>$(PackagesDir)/$(RoslynPackageName).$(RoslynVersion)/</RoslynPackageDir>
205-
<RoslynPropsFile>$(RoslynPackageDir)build/Microsoft.Net.ToolsetCompilers.props</RoslynPropsFile>
206-
207-
<!--
208-
Portable PDBs are now supported in Linux and OSX with .Net Core MSBuild.
209-
-->
210-
<DebugType>Portable</DebugType>
211-
212-
<!--
213-
Delay signing with the ECMA key currently doesn't work.
214-
https://github.com/dotnet/roslyn/issues/2444
215-
-->
216-
<UseECMAKey>false</UseECMAKey>
217-
218-
<!--
219-
Full signing with Open key doesn't work with Portable Csc.
220-
https://github.com/dotnet/roslyn/issues/8210
221-
-->
222-
<UseOpenKey>false</UseOpenKey>
223-
224-
<!--
225-
Mono currently doesn't include VB targets for portable, notably /lib/mono/xbuild/Microsoft/Portable/v4.5/Microsoft.Portable.VisualBasic.targets.
226-
Fixed in https://github.com/mono/mono/pull/1726.
227-
-->
228-
<IncludeVbProjects>false</IncludeVbProjects>
229-
</PropertyGroup>
230-
231185
<PropertyGroup>
232186
<!-- By default make all libraries to be AnyCPU but individual projects can override it if they need to -->
233187
<Platform>AnyCPU</Platform>
@@ -280,6 +234,7 @@
280234
<TargetGroup Condition="'$(TargetGroup)'=='' and $(Configuration.Contains('netstandard15aot'))">netstandard15aot</TargetGroup>
281235
<TargetGroup Condition="'$(TargetGroup)'=='' and $(Configuration.Contains('netcore50'))">netcore50</TargetGroup>
282236
<TargetGroup Condition="'$(TargetGroup)'=='' and $(Configuration.Contains('netcoreapp1.0'))">netcoreapp1.0</TargetGroup>
237+
<TargetGroup Condition="'$(TargetGroup)'=='' and $(Configuration.Contains('netcoreapp1.1'))">netcoreapp1.1</TargetGroup>
283238
<TargetGroup Condition="'$(TargetGroup)'=='' and $(Configuration.Contains('dnxcore50'))">dnxcore50</TargetGroup>
284239
<TargetGroup Condition="'$(TargetGroup)'=='' and $(Configuration.Contains('net463'))">net463</TargetGroup>
285240
<TargetGroup Condition="'$(TargetGroup)'=='' and $(Configuration.Contains('net462'))">net462</TargetGroup>
@@ -454,6 +409,12 @@
454409
<NuGetTargetMoniker>.NETCoreApp,Version=v1.0</NuGetTargetMoniker>
455410
</PropertyGroup>
456411
</When>
412+
<When Condition="'$(TargetGroup)'=='netcoreapp1.1'">
413+
<PropertyGroup>
414+
<PackageTargetFramework>netcoreapp1.1</PackageTargetFramework>
415+
<NuGetTargetMoniker>.NETCoreApp,Version=v1.1</NuGetTargetMoniker>
416+
</PropertyGroup>
417+
</When>
457418
<When Condition="'$(TargetGroup)'=='dnxcore50'">
458419
<PropertyGroup>
459420
<ConfigurationErrorMsg>$(ConfigurationErrorMsg);DNXCore50 has been deprecated. Please use NETStandard1.X or NETCoreApp1.0 instead.</ConfigurationErrorMsg>
@@ -522,9 +483,10 @@
522483

523484
<!-- Default Test platform to deploy the netstandard compiled tests to -->
524485
<PropertyGroup>
525-
<TestTFM Condition="'$(TestTFM)'==''">netcoreapp1.0</TestTFM>
526-
<!-- we default FilterToTestTFM to netcoreapp1.0 if it is not explicity defined -->
527-
<FilterToTestTFM Condition="'$(FilterToTestTFM)'==''">netcoreapp1.0</FilterToTestTFM>
486+
<!-- we default TestTFM and FilterToTestTFM to netcoreapp1.0 if they are not explicity defined -->
487+
<DefaultTestTFM Condition="'$(DefaultTestTFM)'==''">netcoreapp1.0</DefaultTestTFM>
488+
<TestTFM Condition="'$(TestTFM)'==''">$(DefaultTestTFM)</TestTFM>
489+
<FilterToTestTFM Condition="'$(FilterToTestTFM)'==''">$(DefaultTestTFM)</FilterToTestTFM>
528490
</PropertyGroup>
529491

530492
<PropertyGroup>
@@ -588,6 +550,7 @@
588550
<SkipTests Condition="'$(SkipTests)'=='' and ('$(OsEnvironment)'=='Windows_NT' and '$(TargetsWindows)'!='true' and '$(OSGroup)'!='AnyOS')">true</SkipTests>
589551
</PropertyGroup>
590552

591-
<Import Project="$(RoslynPropsFile)" Condition="'$(OsEnvironment)'=='Unix' and Exists('$(RoslynPropsFile)')" />
592-
553+
<!-- Use Roslyn Compilers to build -->
554+
<Import Project="$(RoslynPropsFile)" Condition="'$(OSEnvironment)'!='Unix' and Exists('$(RoslynPropsFile)') and '$(UseRoslynCompilers)'!='false'" />
555+
<Import Project="$(RoslynPropsFile)" Condition="'$(OSEnvironment)'=='Unix' and Exists('$(RoslynPropsFile)')" />
593556
</Project>

dir.targets

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,22 @@
4545
<!-- We set this property to avoid MSBuild errors regarding not setting TargetFrameworkProfile (see above line) -->
4646
<PortableNuGetMode>true</PortableNuGetMode>
4747
</PropertyGroup>
48+
49+
<!--
50+
add the test-runtime project.json to the list of supplemental test data so it will get included
51+
in the test archive; the stress test build system depends on it when building test mixes.
52+
-->
53+
<ItemGroup Condition="'$(IsTestProject)'=='true'">
54+
<SupplementalTestData Include="$(SourceDir)Common/test-runtime/project.json">
55+
<DestinationDir>test-runtime/</DestinationDir>
56+
</SupplementalTestData>
57+
</ItemGroup>
58+
59+
<Target Name="ProducesPackageId"
60+
Returns="@(PackageIds)">
61+
<ItemGroup>
62+
<PackageIds Include="$(Id)" />
63+
</ItemGroup>
64+
</Target>
65+
4866
</Project>

dir.traversal.targets

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,32 @@
8686
ContinueOnError="ErrorAndContinue" />
8787
</Target>
8888

89+
<Target Name="ProducesPackageId"
90+
Returns="@(PackageIds)"
91+
DependsOnTargets="FilterProjects">
92+
<MSBuild Targets="ProducesPackageId"
93+
Projects="@(Project)"
94+
BuildInParallel="true"
95+
ContinueOnError="ErrorAndContinue">
96+
<Output TaskParameter="TargetOutputs"
97+
ItemName="PackageIds" />
98+
</MSBuild>
99+
<ItemGroup>
100+
<PackageIds Include="@(PackageIds)" />
101+
</ItemGroup>
102+
</Target>
103+
104+
<Target Name="ProducesTarget" DependsOnTargets="FilterProjects">
105+
<MSBuild Targets="ProducesPackageId"
106+
Projects="@(Project)"
107+
BuildInParallel="true"
108+
ContinueOnError="ErrorAndContinue">
109+
<Output TaskParameter="TargetOutputs"
110+
ItemName="PackageIds" />
111+
</MSBuild>
112+
<Message Text="%(PackageIds.Identity)" Importance="High" />
113+
</Target>
114+
89115
<Target Name="BuildAllProjects" DependsOnTargets="FilterProjects">
90116
<PropertyGroup>
91117
<DefaultBuildAllTarget Condition="'$(DefaultBuildAllTarget)'==''">$(MSBuildProjectDefaultTargets)</DefaultBuildAllTarget>
@@ -126,6 +152,7 @@
126152

127153
<!-- for projects not defining TestTFM in .builds files, we assume the TestTFM is the default which is netcoreapp1.0 -->
128154
<ProjectsToTest Include="@(Project)" Condition="'%(Project.Extension)'=='.csproj' And '$(FilterToTestTFM)' == 'netcoreapp1.0' And '%(Project.TestTFMs)' == ''" />
155+
<ProjectsToTest Include="@(Project)" Condition="'%(Project.Extension)'=='.csproj' And '$(FilterToTestTFM)' == 'netcoreapp1.1' And '%(Project.TestTFMs)' == ''" />
129156

130157
<!-- include the projects have TestTFM value match FilterToTestTFM -->
131158
<ProjectsToTest Include="@(Project)" Condition="'%(Project.Extension)'=='.csproj' And $([System.String]::new('%(Project.TestTFMs)').Contains(';$(FilterToTestTFM);'))" />

init-tools.cmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ set DOTNET_LOCAL_PATH=%DOTNET_PATH%%DOTNET_ZIP_NAME%
4343
echo Installing '%DOTNET_REMOTE_PATH%' to '%DOTNET_LOCAL_PATH%' >> "%INIT_TOOLS_LOG%"
4444
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%" (
46-
echo ERROR: Could not install dotnet cli correctly. See '%INIT_TOOLS_LOG%' for more details.
46+
echo ERROR: Could not install dotnet cli correctly. See '%INIT_TOOLS_LOG%' for more details. 1>&2
4747
exit /b 1
4848
)
4949

@@ -54,7 +54,7 @@ echo Restoring BuildTools version %BUILDTOOLS_VERSION%...
5454
echo Running: "%DOTNET_CMD%" restore "%PROJECT_JSON_FILE%" --no-cache --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" >> "%INIT_TOOLS_LOG%"
5555
call "%DOTNET_CMD%" restore "%PROJECT_JSON_FILE%" --no-cache --packages %PACKAGES_DIR% --source "%BUILDTOOLS_SOURCE%" >> "%INIT_TOOLS_LOG%"
5656
if NOT exist "%BUILD_TOOLS_PATH%init-tools.cmd" (
57-
echo ERROR: Could not restore build tools correctly. See '%INIT_TOOLS_LOG%' for more details.
57+
echo ERROR: Could not restore build tools correctly. See '%INIT_TOOLS_LOG%' for more details. 1>&2
5858
exit /b 1
5959
)
6060

@@ -65,7 +65,7 @@ echo Running: "%BUILD_TOOLS_PATH%init-tools.cmd" "%~dp0" "%DOTNET_CMD%" "%TOOLRU
6565
call "%BUILD_TOOLS_PATH%init-tools.cmd" "%~dp0" "%DOTNET_CMD%" "%TOOLRUNTIME_DIR%" >> "%INIT_TOOLS_LOG%"
6666
set INIT_TOOLS_ERRORLEVEL=%ERRORLEVEL%
6767
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.
68+
echo ERROR: An error occured when trying to initialize the tools. Please check '%INIT_TOOLS_LOG%' for more details. 1>&2
6969
exit /b %INIT_TOOLS_ERRORLEVEL%
7070
)
7171

init-tools.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ OSName=$(uname -s)
3131
__DOTNET_PKG=dotnet-dev-ubuntu.14.04-x64
3232
else
3333
source /etc/os-release
34-
if [[ "$ID" == "ubuntu" && "$VERSION_ID" != "14.04" && "$VERSION_ID" != "16.04" ]]; then
34+
if [[ "$ID" == "ubuntu" && "$VERSION_ID" != "14.04" && "$VERSION_ID" != "16.04" && "$VERSION_ID" != "16.10" ]]; then
3535
echo "Unsupported Ubuntu version, falling back to Ubuntu 14.04."
3636
__DOTNET_PKG=dotnet-dev-ubuntu.14.04-x64
3737
else
@@ -47,7 +47,6 @@ OSName=$(uname -s)
4747
;;
4848
esac
4949
fi
50-
5150
if [ ! -e $__INIT_TOOLS_DONE_MARKER ]; then
5251
if [ -e $__TOOLRUNTIME_DIR ]; then rm -rf -- $__TOOLRUNTIME_DIR; fi
5352
echo "Running: $__scriptpath/init-tools.sh" > $__init_tools_log
@@ -76,14 +75,14 @@ if [ ! -e $__INIT_TOOLS_DONE_MARKER ]; then
7675
echo "Restoring BuildTools version $__BUILD_TOOLS_PACKAGE_VERSION..."
7776
echo "Running: $__DOTNET_CMD restore \"$__PROJECT_JSON_FILE\" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE" >> $__init_tools_log
7877
$__DOTNET_CMD restore "$__PROJECT_JSON_FILE" --no-cache --packages $__PACKAGES_DIR --source $__BUILDTOOLS_SOURCE >> $__init_tools_log
79-
if [ ! -e "$__BUILD_TOOLS_PATH/init-tools.sh" ]; then echo "ERROR: Could not restore build tools correctly. See '$__init_tools_log' for more details."; fi
78+
if [ ! -e "$__BUILD_TOOLS_PATH/init-tools.sh" ]; then echo "ERROR: Could not restore build tools correctly. See '$__init_tools_log' for more details."1>&2; fi
8079
fi
8180

8281
echo "Initializing BuildTools..."
8382
echo "Running: $__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR" >> $__init_tools_log
8483
$__BUILD_TOOLS_PATH/init-tools.sh $__scriptpath $__DOTNET_CMD $__TOOLRUNTIME_DIR >> $__init_tools_log
8584
if [ "$?" != "0" ]; then
86-
echo "ERROR: An error occured when trying to initialize the tools. Please check '$__init_tools_log' for more details."
85+
echo "ERROR: An error occured when trying to initialize the tools. Please check '$__init_tools_log' for more details."1>&2
8786
exit 1
8887
fi
8988
touch $__INIT_TOOLS_DONE_MARKER

0 commit comments

Comments
 (0)