Moving the ProjectToolsCommandResolver to dotnet out of Cli.Utils because of the dependency on Microsoft.Build. Also added a EndToEnd test for tools ref using the MSBuildTestApp.

This commit is contained in:
Livar Cunha 2016-10-03 21:40:24 -07:00
parent 12e8e8eca7
commit 1570e0fde4
21 changed files with 186 additions and 29 deletions

View file

@ -43,5 +43,27 @@ namespace Microsoft.DotNet.Tests.EndToEnd
.HaveStdOutContaining("Hello World!");
}
}
[Fact]
public void ItCanRunToolsInACSProj()
{
var testAppName = "MSBuildTestApp";
var testInstance = TestAssetsManager
.CreateTestInstance(testAppName);
var testProjectDirectory = testInstance.TestRoot;
new Restore3Command()
.WithWorkingDirectory(testProjectDirectory)
.Execute()
.Should()
.Pass();
new DotnetCommand()
.WithWorkingDirectory(testInstance.TestRoot)
.ExecuteWithCapturedOutput("portable")
.Should()
.Pass();
}
}
}