Skip to content

Commit

Permalink
Remove error for 'HasWindowsUIXaml'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Dec 25, 2024
1 parent ce1cffc commit b121eb5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MultiTarget/MultiTargetIdentifiers.props
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,11 @@
<Error Condition="'$(IsNetstandard)' == 'true' AND '$(IsUno)' == 'true'" Text="Projects cannot MultiTarget both netstandard and Uno Platform." />

<!--
UWP XAML can only be enabled for UWP projects. No need to warn for UWP XAML
being disabled when WinUI 2 is used, as that will already fail to build.
UWP XAML can only be enabled for UWP projects. No need to warn for UWP XAML being disabled
when WinUI 2 is used, as that will already fail to build. Note that we don't emit an error
for legacy UWP, as otherwise setting this property would require handling conditions to
filter TFMs, which is very clunky. Instead, it'll just be a no-op for legacy UWP projects.
-->
<Error Condition="'$(HasWindowsUIXaml)' == 'true' AND '$(IsUwp)' != 'true'" Text="Projects cannot reference Windows UI XAML if they're not targeting UWP." />
<Error Condition="'$(HasWindowsUIXaml)' == 'false' AND '$(IsUwp)' == 'true' AND '$(MultiTargetPlatformIdentifier)' != 'windows'" Text="Projects cannot disabl Windows UI XAML if they're targeting legacy UWP." />
</Target>
</Project>

0 comments on commit b121eb5

Please sign in to comment.