diff --git a/.gitignore b/.gitignore
index 7bed92752..19e5af704 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,6 +15,9 @@ Library/
# local nuget cache
.nuget/
+# NuGet.Config at the root
+/NuGet.Config
+
# NuGet v3 restore drops these even though we don't use MSBuild :(
*.nuget.targets
*.nuget.props
diff --git a/NuGet.Config b/NuGet.Config
deleted file mode 100644
index 09a1c2c1e..000000000
--- a/NuGet.Config
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/build.proj b/build.proj
index bac606d59..85de07477 100644
--- a/build.proj
+++ b/build.proj
@@ -29,10 +29,11 @@
-
+
+ Outputs="@(RestoreDotnetCliBuildFrameworkOutputs)"
+ DependsOnTargets="WriteNugetConfigFile">
$(ExtraRestoreArgs) /p:GeneratePropsFile=$(GeneratePropsFile)
@@ -48,6 +49,7 @@
+
diff --git a/build/InitRepo.props b/build/InitRepo.props
index 3a17534a9..bc7d7e630 100644
--- a/build/InitRepo.props
+++ b/build/InitRepo.props
@@ -4,5 +4,6 @@
$(GeneratedPropsDir)/GitCommitInfo.props
$(GeneratedPropsDir)/HostInfo.props
$(GeneratedPropsDir)/BuildInfo.props
+ $(RepoRoot)/NuGet.Config
diff --git a/build/InitRepo.targets b/build/InitRepo.targets
index be227551e..078923dec 100644
--- a/build/InitRepo.targets
+++ b/build/InitRepo.targets
@@ -1,6 +1,7 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ]]>
+
+
+
+
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/run-build.ps1 b/run-build.ps1
index 17a46a335..366267f3e 100644
--- a/run-build.ps1
+++ b/run-build.ps1
@@ -80,16 +80,16 @@ $env:VSTEST_TRACE_BUILD=1
# install a stage0
$dotnetInstallPath = Join-Path $RepoRoot "scripts\obtain\dotnet-install.ps1"
-Write-Output "$dotnetInstallPath -Channel ""release/2.0.0"" -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$Architecture"""
-Invoke-Expression "$dotnetInstallPath -Channel ""release/2.0.0"" -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$Architecture"""
+Write-Output "$dotnetInstallPath -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$Architecture"" -Channel ""release/2.0.0"""
+Invoke-Expression "$dotnetInstallPath -InstallDir $env:DOTNET_INSTALL_DIR -Architecture ""$Architecture"" -Channel ""release/2.0.0"""
if ($LastExitCode -ne 0)
{
Write-Output "The .NET CLI installation failed with exit code $LastExitCode"
exit $LastExitCode
}
-Write-Output "$dotnetInstallPath -Channel ""master"" -InstallDir $env:DOTNET_INSTALL_DIR_PJ -Architecture ""$Architecture"" -Version 1.0.0-preview2-1-003177"
-Invoke-Expression "$dotnetInstallPath -Channel ""master"" -InstallDir $env:DOTNET_INSTALL_DIR_PJ -Architecture ""$Architecture"" -Version 1.0.0-preview2-1-003177"
+Write-Output "$dotnetInstallPath -InstallDir $env:DOTNET_INSTALL_DIR_PJ -Architecture ""$Architecture"" -Version 1.0.0-preview2-1-003177"
+Invoke-Expression "$dotnetInstallPath -InstallDir $env:DOTNET_INSTALL_DIR_PJ -Architecture ""$Architecture"" -Version 1.0.0-preview2-1-003177"
if ($LastExitCode -ne 0)
{
Write-Output "The .NET CLI installation failed with exit code $LastExitCode"
@@ -106,7 +106,7 @@ if ($NoBuild)
}
else
{
- dotnet msbuild build.proj /p:Architecture=$Architecture /p:GeneratePropsFile=true /t:WriteDynamicPropsToStaticPropsFiles
+ dotnet msbuild build.proj /p:Architecture=$Architecture /p:GeneratePropsFile=true /t:WriteDynamicPropsToStaticPropsFiles $ExtraParameters
dotnet msbuild build.proj /m /v:normal /fl /flp:v=diag /p:Architecture=$Architecture $ExtraParameters
if($LASTEXITCODE -ne 0) { throw "Failed to build" }
}