Merge pull request #2153 from dotnet/pakrym/infer-scripts

Infer rids for build script restore
This commit is contained in:
Pavel Krymets 2016-03-30 19:20:51 -07:00
commit 6bd374a4ec
4 changed files with 3 additions and 3 deletions

View file

@ -206,7 +206,7 @@ namespace Microsoft.DotNet.Cli.Build
var dotnet = DotNetCli.Stage0;
dotnet.Restore("--verbosity", "verbose", "--disable-parallel").WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "src")).Execute().EnsureSuccessful();
dotnet.Restore("--verbosity", "verbose", "--disable-parallel").WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "tools")).Execute().EnsureSuccessful();
dotnet.Restore("--verbosity", "verbose", "--disable-parallel", "--infer-runtimes").WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "tools")).Execute().EnsureSuccessful();
return c.Success();
}

View file

@ -72,7 +72,7 @@ $env:PATH = "$env:DOTNET_INSTALL_DIR;$env:PATH"
# Restore the build scripts
Write-Host "Restoring Build Script projects..."
pushd $PSScriptRoot
dotnet restore --disable-parallel
dotnet restore --disable-parallel --infer-runtimes
if($LASTEXITCODE -ne 0) { throw "Failed to restore" }
popd

View file

@ -103,7 +103,7 @@ fi
echo "Restoring Build Script projects..."
(
cd $DIR
dotnet restore --disable-parallel
dotnet restore --disable-parallel --infer-runtimes
)
# Build the builder