Skip to content

Commit 016b5ba

Browse files
committed
Update publish profile tests to add SC explicitly per .net 8 breaking change
1 parent 750f982 commit 016b5ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ public void It_publishes_with_a_publish_profile(bool? selfContained, bool? useAp
980980
<PropertyGroup>
981981
<RuntimeIdentifier>{rid}</RuntimeIdentifier>
982982
{(selfContained.HasValue ? $"<SelfContained>{selfContained}</SelfContained>" : "")}
983-
{((!(selfContained ?? true) && useAppHost.HasValue) ? $"<UseAppHost>{useAppHost}</UseAppHost>" : "")}
983+
{((!(selfContained ?? false) && useAppHost.HasValue) ? $"<UseAppHost>{useAppHost}</UseAppHost>" : "")}
984984
</PropertyGroup>
985985
</Project>
986986
");

src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAWebApp.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public void PublishWebAppWithPublishProfile(bool? selfContained, bool? useAppHos
194194
<PropertyGroup>
195195
<RuntimeIdentifier>{rid}</RuntimeIdentifier>
196196
{(selfContained.HasValue ? $"<SelfContained>{selfContained}</SelfContained>" : "")}
197-
{((!(selfContained ?? true) && useAppHost.HasValue) ? $"<UseAppHost>{useAppHost}</UseAppHost>" : "")}
197+
{((!(selfContained ?? false) && useAppHost.HasValue) ? $"<UseAppHost>{useAppHost}</UseAppHost>" : "")}
198198
</PropertyGroup>
199199
</Project>
200200
");

0 commit comments

Comments
 (0)