Skip to content

Commit

Permalink
Fixed restore for test solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
maca88 committed Dec 30, 2017
1 parent 5b1cf67 commit cd27bc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Source/AsyncGenerator.Tests/TargetFramework/Fixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ namespace AsyncGenerator.Tests.TargetFramework
[TestFixture]
public class Fixture : BaseFixture
{
[OneTimeSetUp]
public void Restore()
{
var process = new Process();
var startInfo = new ProcessStartInfo
{
WindowStyle = ProcessWindowStyle.Hidden,
FileName = "cmd.exe",
Arguments = $"/C dotnet restore {GetTestSolutionPath("MultiTargetFrameworks")}"
};
process.StartInfo = startInfo;
process.Start();
}

[Test]
public Task TestSolution()
{
Expand Down
9 changes: 9 additions & 0 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ Task("Restore-NuGet-Packages")
{
ConfigFile = "./Nuget.config"
});
var testSolutions = GetFiles("./Source/AsyncGenerator.TestProjects/*.sln");
foreach(var testSolution in testSolutions)
{
Information("Restoring {0}", testSolution);
NuGetRestore(testSolution, new NuGetRestoreSettings
{
ConfigFile = "./Nuget.config"
});
}
});

Task("Build")
Expand Down

0 comments on commit cd27bc5

Please sign in to comment.