Add fallback source to test project restore
This commit is contained in:
parent
0b8b226c61
commit
43fdc13b51
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
CleanNuGetTempCache();
|
CleanNuGetTempCache();
|
||||||
|
|
||||||
var dotnet = DotNetCli.Stage2;
|
var dotnet = DotNetCli.Stage2;
|
||||||
dotnet.Restore().WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestProjects")).Execute().EnsureSuccessful();
|
dotnet.Restore("--fallbacksource", Dirs.TestPackages)
|
||||||
|
.WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "TestAssets", "TestProjects"))
|
||||||
|
.Execute().EnsureSuccessful();
|
||||||
|
|
||||||
// The 'testapp' directory contains intentionally-unresolved dependencies, so don't check for success. Also, suppress the output
|
// The 'testapp' directory contains intentionally-unresolved dependencies, so don't check for success. Also, suppress the output
|
||||||
dotnet.Restore().WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "testapp")).CaptureStdErr().CaptureStdOut().Execute();
|
dotnet.Restore().WorkingDirectory(Path.Combine(c.BuildContext.BuildDirectory, "testapp")).CaptureStdErr().CaptureStdOut().Execute();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue