We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656ea32 commit 3b9debfCopy full SHA for 3b9debf
test/Microsoft.NET.Build.Tests/ReferenceExeTests.cs
@@ -503,21 +503,11 @@ public void ExeProjectCanReferenceTestProject(
503
.Should()
504
.Pass();
505
506
- if (buildWithSelfContainedFromCommandLine)
507
- {
508
- new DotnetCommand(Log, "build", "--self-contained")
509
- .WithWorkingDirectory(consoleProjectDirectory)
510
- .Execute()
511
- .Should()
512
- .Pass();
513
- }
514
- else
515
516
- new BuildCommand(Log, consoleProjectDirectory)
517
518
519
520
+ new BuildCommand(testAsset)
+ .WithWorkingDirectory(consoleProjectDirectory)
+ .Execute(buildWithSelfContainedFromCommandLine ? ["-p:SelfContained=true"] : Array.Empty<string>())
+ .Should()
+ .Pass();
521
}
522
523
[Theory]
0 commit comments