Skip to content

Commit

Permalink
chore: Adjust devserver inclusion when WinExe is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban authored Oct 2, 2024
1 parent 30437b8 commit c60484f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Uno.Sdk/targets/Uno.Common.targets
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<_IsUnoSingleProjectAndLegacy Condition=" $(SingleProject) == 'true' OR $(UnoSingleProject) == 'true' ">true</_IsUnoSingleProjectAndLegacy>

<_ImplicitRestoreOutputType>$([MSBuild]::ValueOrDefault('$(OutputType)', 'Library'))</_ImplicitRestoreOutputType>
<IsUnoHead Condition="$(_ImplicitRestoreOutputType) == 'Exe'">true</IsUnoHead>
<IsUnoHead Condition=" '$(_InitialOutputType)' == 'WinExe' OR '$(_InitialOutputType)' == 'Exe' ">true</IsUnoHead>
<_InitialOutputType>$([MSBuild]::ValueOrDefault('$(OutputType)', 'Library'))</_InitialOutputType>
<_InitialOutputType Condition="$(TargetFramework) == '' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == '' ">Library</_InitialOutputType>
<_IsStandaloneWasmHead>false</_IsStandaloneWasmHead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<_UnoProjectSystemPackageReference Include="Uno.Resizetizer" ProjectSystem="true" PrivateAssets="all" />
</ItemGroup>

<ItemGroup Condition="$(_ImplicitRestoreOutputType) == 'Exe'">
<ItemGroup Condition=" '$(_InitialOutputType)' == 'WinExe' OR '$(_InitialOutputType)' == 'Exe' ">
<_UnoProjectSystemPackageReference Include="Uno.WinUI.DevServer" ProjectSystem="true" Condition="$(Optimize) != 'true'" />
<_UnoProjectSystemPackageReference Include="Uno.WinUI.DevServer" ProjectSystem="true" Exclude="all" Condition="$(Optimize) == 'true'" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Uno.Sdk/targets/Uno.SingleProject.Desktop.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ApplicationDisplayVersion Condition=" '$(ApplicationDisplayVersion)' == '' ">$(Version)</ApplicationDisplayVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(IsUnoHead)' == 'true' ">
<PropertyGroup Condition=" '$(IsUnoHead)' == 'true' AND $(Optimize) == 'true' ">
<OutputType>WinExe</OutputType>
</PropertyGroup>

Expand Down

0 comments on commit c60484f

Please sign in to comment.