Merge pull request #9771 from dotnet/merges/release/2.1.4xx-to-release/2.1.401
Merge release/2.1.4xx to release/2.1.401
This commit is contained in:
commit
60fd63aa41
9 changed files with 141 additions and 1 deletions
|
@ -1012,6 +1012,72 @@ EndGlobal
|
|||
.Should().BeVisuallyEquivalentTo(ExpectedSlnFileAfterAddingProjectWithAdditionalConfigs);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ItAddsACSharpProjectThatIsMultitargeted()
|
||||
{
|
||||
var solutionDirectory = TestAssets
|
||||
.Get("TestAppsWithSlnAndMultitargetedProjects")
|
||||
.CreateInstance()
|
||||
.WithSourceFiles()
|
||||
.Root
|
||||
.FullName;
|
||||
|
||||
var slnFullPath = Path.Combine(solutionDirectory, "App.sln");
|
||||
var projectToAdd = Path.Combine("MultitargetedCS", "MultitargetedCS.csproj");
|
||||
|
||||
new DotnetCommand()
|
||||
.WithWorkingDirectory(solutionDirectory)
|
||||
.ExecuteWithCapturedOutput($"sln add {projectToAdd}")
|
||||
.Should()
|
||||
.Pass()
|
||||
.And
|
||||
.HaveStdOutContaining(string.Format(CommonLocalizableStrings.ProjectAddedToTheSolution, projectToAdd));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ItAddsAVisualBasicProjectThatIsMultitargeted()
|
||||
{
|
||||
var solutionDirectory = TestAssets
|
||||
.Get("TestAppsWithSlnAndMultitargetedProjects")
|
||||
.CreateInstance()
|
||||
.WithSourceFiles()
|
||||
.Root
|
||||
.FullName;
|
||||
|
||||
var slnFullPath = Path.Combine(solutionDirectory, "App.sln");
|
||||
var projectToAdd = Path.Combine("MultitargetedVB", "MultitargetedVB.vbproj");
|
||||
|
||||
new DotnetCommand()
|
||||
.WithWorkingDirectory(solutionDirectory)
|
||||
.ExecuteWithCapturedOutput($"sln add {projectToAdd}")
|
||||
.Should()
|
||||
.Pass()
|
||||
.And
|
||||
.HaveStdOutContaining(string.Format(CommonLocalizableStrings.ProjectAddedToTheSolution, projectToAdd));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ItAddsAnFSharpProjectThatIsMultitargeted()
|
||||
{
|
||||
var solutionDirectory = TestAssets
|
||||
.Get("TestAppsWithSlnAndMultitargetedProjects")
|
||||
.CreateInstance()
|
||||
.WithSourceFiles()
|
||||
.Root
|
||||
.FullName;
|
||||
|
||||
var slnFullPath = Path.Combine(solutionDirectory, "App.sln");
|
||||
var projectToAdd = Path.Combine("MultitargetedFS", "MultitargetedFS.fsproj");
|
||||
|
||||
new DotnetCommand()
|
||||
.WithWorkingDirectory(solutionDirectory)
|
||||
.ExecuteWithCapturedOutput($"sln add {projectToAdd}")
|
||||
.Should()
|
||||
.Pass()
|
||||
.And
|
||||
.HaveStdOutContaining(string.Format(CommonLocalizableStrings.ProjectAddedToTheSolution, projectToAdd));
|
||||
}
|
||||
|
||||
private string GetExpectedSlnContents(
|
||||
string slnPath,
|
||||
string slnTemplate,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue