Skip to content

Commit

Permalink
[xharness] Make restoring nugets the default for all test projects. (#…
Browse files Browse the repository at this point in the history
…9237)

But don't do it for .NET projects, since 'dotnet build' automatically restores.
  • Loading branch information
rolfbjarne authored Jul 30, 2020
1 parent 6d26688 commit d304198
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public BuildProject (Func<string> msbuildPath, IProcessManager processManager, I

public bool RestoreNugets {
get {
if (TestProject.IsDotNetProject)
return false;
return TestProject.RestoreNugetsInProject || !string.IsNullOrEmpty (SolutionPath);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class TestProject
public string [] Configurations;
public Func<Task> Dependency;
public string FailureMessage;
public bool RestoreNugetsInProject;
public bool RestoreNugetsInProject = true;
public string MTouchExtraArgs;
public double TimeoutMultiplier = 1;

Expand Down

0 comments on commit d304198

Please sign in to comment.