Skip to content

Commit b529e6f

Browse files
committed
fix conflict
1 parent cdab1cd commit b529e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Containers/packaging/build/Microsoft.NET.Build.Containers.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@
110110

111111
<ItemGroup Label="AppCommand Assignment" Condition="'$(ContainerAppCommandInstruction)' != 'None'">
112112
<!-- For self-contained, invoke the native executable as a single arg -->
113-
<ContainerAppCommand Condition="@(ContainerAppCommand->Count()) == 0 and '$(UseAppHost)' == 'true'" Include="$(ContainerWorkingDirectory)$(AssemblyName)$(_NativeExecutableExtension)" />
113+
<ContainerAppCommand Condition="@(ContainerAppCommand->Count()) == 0 and $(_ContainerIsSelfContained)" Include="$(ContainerWorkingDirectory)$(AssemblyName)$(_NativeExecutableExtension)" />
114114
<!-- For non self-contained, invoke `dotnet` `app.dll` as separate args -->
115-
<ContainerAppCommand Condition="@(ContainerAppCommand->Count()) == 0 and '!$(UseAppHost)' == 'true'" Include="dotnet;$(ContainerWorkingDirectory)$(TargetFileName)" />
115+
<ContainerAppCommand Condition="@(ContainerAppCommand->Count()) == 0 and !$(_ContainerIsSelfContained)" Include="dotnet;$(ContainerWorkingDirectory)$(TargetFileName)" />
116116
</ItemGroup>
117117

118118
<!-- We only set a default user when the base image is Microsoft-authored, and we're targeting a version of those images that supports a nonroot user -->

0 commit comments

Comments
 (0)