Fix bug preventing MakeRunnable on dependent project when using globbing build

This commit is contained in:
Pavel Krymets 2016-05-16 12:40:42 -07:00
parent 07b785c183
commit 670dbca45b
8 changed files with 99 additions and 10 deletions

View file

@ -176,6 +176,25 @@ namespace Microsoft.DotNet.Tools.Builder.Tests
informationalVersion.Should().BeEquivalentTo("1.0.0-85");
}
[Fact]
public void BuildGlobbingMakesAllRunnable()
{
var testInstance = TestAssetsManager.CreateTestInstance("AppWithAppDependency")
.WithLockFiles();
var cmd = new BuildCommand(string.Format("*{0}project.json", Path.DirectorySeparatorChar), skipLoadProject: true)
.WithWorkingDirectory(testInstance.TestRoot)
.Execute()
.Should()
.Pass();
foreach (var project in new [] { "TestApp1", "TestApp2" })
{
new DirectoryInfo(Path.Combine(testInstance.TestRoot, project, "bin", "Debug", DefaultFramework))
.Should().HaveFile($"{project}.deps.json");
}
}
[Theory]
// [InlineData("net20", false, true)]
// [InlineData("net40", true, true)]