Consider app extensions executable projects.

This commit is contained in:
Rolf Bjarne Kvinge 2024-10-16 14:46:37 +02:00
Родитель fb638a1b2b
Коммит db2468ef1c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -12,7 +12,7 @@
<!-- Set the default TargetPlatformVersion if it wasn't specified in the TargetFramework variable. This must be set after importing Sdk.targets (in Xamarin.Shared.Sdk.targets) -->
<PropertyGroup>
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == '' And '$(OutputType)' == 'Exe'">$(_XamarinTargetPlatformVersionExecutable)</TargetPlatformVersion>
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == '' And '$(OutputType)' != 'Exe'">$(_XamarinTargetPlatformVersionLibrary)</TargetPlatformVersion>
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == '' And ('$(OutputType)' == 'Exe' Or '$(IsAppExtension)' == 'true')">$(_XamarinTargetPlatformVersionExecutable)</TargetPlatformVersion>
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == ''">$(_XamarinTargetPlatformVersionLibrary)</TargetPlatformVersion>
</PropertyGroup>
</Project>