Skip to content

Commit

Permalink
Merge pull request #1902 from unoplatform/dev/nr/mauinamespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel authored Sep 18, 2023
2 parents b3bbbad + 6f00301 commit 441cb5c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/Uno.Extensions.Maui.UI/build/Package.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,24 @@
<IsMauiEmbedding>false</IsMauiEmbedding>
<IsMauiEmbedding Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios' OR $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'maccatalyst' OR $(TargetFramework.Contains('windows10'))" >true</IsMauiEmbedding>
<DefineConstants Condition="$(IsMauiEmbedding)">$(DefineConstants);MAUI_EMBEDDING</DefineConstants>
</PropertyGroup>
<PropertyGroup>

<UseMaui>true</UseMaui>
<UseMauiAssets>false</UseMauiAssets>
<_MauiSkipSdkAutoImport>true</_MauiSkipSdkAutoImport>
<EnableDefaultXamlItems>false</EnableDefaultXamlItems>
<EnableDefaultMauiItems>false</EnableDefaultMauiItems>
</PropertyGroup>

<ItemGroup Condition="'$(IsMauiEmbedding)'=='True'">
<IncludeXamlNamespaces Include="maui" />
<ExcludeXamlNamespaces Include="not_maui" />
</ItemGroup>

<ItemGroup Condition="'$(IsMauiEmbedding)'!='True'">
<IncludeXamlNamespaces Include="not_maui" />
<ExcludeXamlNamespaces Include="maui" />
</ItemGroup>

<Choose>
<When Condition="$(TargetFramework.Contains('windows10'))">
<PropertyGroup Condition=" '$(OutputType)' != 'WinExe' AND '$(OutputType)' != 'Exe' ">
Expand Down

0 comments on commit 441cb5c

Please sign in to comment.