Do no pass down to implicit restore the framework option.
This commit is contained in:
parent
94e728b9ab
commit
5e5b4de0b9
16 changed files with 242 additions and 24 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
using System.IO;
|
||||
using FluentAssertions;
|
||||
using Microsoft.DotNet.TestFramework;
|
||||
using Microsoft.DotNet.Tools.Test.Utilities;
|
||||
using Xunit;
|
||||
|
||||
|
@ -54,6 +55,24 @@ namespace Microsoft.DotNet.Cli.Run.Tests
|
|||
.And.HaveStdOutContaining("Hello World!");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ItCanRunAMultiTFMProjectWithImplicitRestore()
|
||||
{
|
||||
var testInstance = TestAssets.Get(
|
||||
TestAssetKinds.DesktopTestProjects,
|
||||
"NETFrameworkReferenceNETStandard20")
|
||||
.CreateInstance()
|
||||
.WithSourceFiles();
|
||||
|
||||
string projectDirectory = Path.Combine(testInstance.Root.FullName, "MultiTFMTestApp");
|
||||
|
||||
new RunCommand()
|
||||
.WithWorkingDirectory(projectDirectory)
|
||||
.ExecuteWithCapturedOutput("--framework netcoreapp2.0")
|
||||
.Should().Pass()
|
||||
.And.HaveStdOutContaining("This string came from the test library!");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ItDoesNotImplicitlyRestoreAProjectWhenRunningWithTheNoRestoreOption()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue