From 68b7810f450a74a89475bf4fbb5342e813521f39 Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Wed, 3 Oct 2018 11:58:49 -0700 Subject: [PATCH 1/3] Adding NU5123 to the NOWARN list. This was a new warning introduced by NuGet that we started hitting when upgrading to a newer SDK. --- build/BuildDefaults.props | 3 ++- run-build.ps1 | 4 ++-- run-build.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build/BuildDefaults.props b/build/BuildDefaults.props index 1f26ed86083..0fbde02cb6f 100644 --- a/build/BuildDefaults.props +++ b/build/BuildDefaults.props @@ -30,7 +30,8 @@ - NU1701;NU5104 + + NU1701;NU5104;NU5123 true true diff --git a/run-build.ps1 b/run-build.ps1 index e4c59d38090..5ef6fdc6d31 100644 --- a/run-build.ps1 +++ b/run-build.ps1 @@ -92,8 +92,8 @@ if($Architecture.StartsWith("arm", [StringComparison]::OrdinalIgnoreCase)) $InstallArchitecture = "x64" } -Write-Output "$dotnetInstallPath -version ""2.1.300"" -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$InstallArchitecture""" -Invoke-Expression "$dotnetInstallPath -version ""2.1.300"" -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$InstallArchitecture""" +Write-Output "$dotnetInstallPath -version ""2.1.403"" -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$InstallArchitecture""" +Invoke-Expression "$dotnetInstallPath -version ""2.1.403"" -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$InstallArchitecture""" if ($LastExitCode -ne 0) { diff --git a/run-build.sh b/run-build.sh index dfa0e0425cf..64ac3aae2a5 100755 --- a/run-build.sh +++ b/run-build.sh @@ -165,7 +165,7 @@ if [[ $archlower == 'arm'* ]]; then fi if [ "$STAGE0_SOURCE_DIR" == "" ]; then - (set -x ; "$REPOROOT/scripts/obtain/dotnet-install.sh" --version "2.1.300" --install-dir "$DOTNET_INSTALL_DIR" --architecture "$INSTALL_ARCHITECTURE" $LINUX_PORTABLE_INSTALL_ARGS) + (set -x ; "$REPOROOT/scripts/obtain/dotnet-install.sh" --version "2.1.403" --install-dir "$DOTNET_INSTALL_DIR" --architecture "$INSTALL_ARCHITECTURE" $LINUX_PORTABLE_INSTALL_ARGS) else echo "Copying bootstrap cli from $STAGE0_SOURCE_DIR" cp -r $STAGE0_SOURCE_DIR/* "$DOTNET_INSTALL_DIR" From 48ed870b75b3336e94f23e287af0d24e0af031f7 Mon Sep 17 00:00:00 2001 From: Livar Cunha Date: Fri, 5 Oct 2018 09:30:20 -0700 Subject: [PATCH 2/3] Updating exec for OSX by putting the whole command in a single line. There was a change in MSBuild where we changed the way the exec command is treated. --- build/package/Installer.PKG.targets | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/build/package/Installer.PKG.targets b/build/package/Installer.PKG.targets index 9eae8730d9b..54b2ae24e26 100644 --- a/build/package/Installer.PKG.targets +++ b/build/package/Installer.PKG.targets @@ -118,13 +118,7 @@ Glob="$(SdkPkgScriptFile)" Mode="ugo+x" /> - + - + Date: Fri, 5 Oct 2018 14:42:41 -0700 Subject: [PATCH 3/3] Fixing exec with line breaks on windows now, affected by the same MSBuild change that changed how exec treats line endings. --- build/package/Installer.MSI.targets | 92 ++++++++++++++--------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/build/package/Installer.MSI.targets b/build/package/Installer.MSI.targets index 17058aef02a..9dd676b5d08 100644 --- a/build/package/Installer.MSI.targets +++ b/build/package/Installer.MSI.targets @@ -102,17 +102,17 @@ Inputs="@(GenerateSdkMsiInputs)" Outputs="$(SdkInstallerFile)"> - @@ -122,15 +122,15 @@ Inputs="@(GenerateMSBuildExtensionsMsiInputs)" Outputs="$(MSBuildExtensionsInstallerFile)"> - @@ -144,21 +144,21 @@ $(SdkGenerateBundlePowershellScript)" Outputs="$(CombinedFrameworkSdkHostInstallerFile)"> - @@ -170,10 +170,10 @@ $(SdkGenerateNupkgPowershellScript)" Outputs="$(SdkInstallerNupkgFile)"> - @@ -185,10 +185,10 @@ $(SdkGenerateNupkgPowershellScript)" Outputs="$(SdkMSBuildExtensionsNupkgFile);$(SdkMSBuildExtensionsSwrFile)"> - -