Skip to content

Commit b322481

Browse files
committed
force static registrar
1 parent 3bf562c commit b322481

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

samples/Foo.Bar.SampleApp.Net9/Foo.Bar.SampleApp.Net9.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
2424
</PropertyGroup>
2525

26+
<Target Name="SelectStaticRegistrar" AfterTargets="SelectRegistrar">
27+
<PropertyGroup Condition="'$(Registrar)' == 'managed-static'">
28+
<Registrar>static</Registrar>
29+
</PropertyGroup>
30+
</Target>
31+
2632
<ItemGroup>
2733
<!-- App Icon -->
2834
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />

0 commit comments

Comments
 (0)