Browse Source

iOS project nuget packaging workaround

pull/7565/head
Max Katz 4 years ago
parent
commit
09e088d4e8
  1. 12
      src/iOS/Avalonia.iOS/Avalonia.iOS.csproj

12
src/iOS/Avalonia.iOS/Avalonia.iOS.csproj

@ -1,4 +1,5 @@
<Project Sdk="Xamarin.Legacy.Sdk">
<Project>
<Import Project="Sdk.props" Sdk="Xamarin.Legacy.Sdk" />
<PropertyGroup>
<TargetFrameworks>net6.0-ios</TargetFrameworks>
<TargetFrameworks Condition="'$(MSBuildRuntimeType)' != 'Core'">$(TargetFrameworks);xamarin.ios10</TargetFrameworks>
@ -9,4 +10,13 @@
<ProjectReference Include="..\..\Avalonia.Base\Avalonia.Base.csproj" />
<ProjectReference Include="..\..\Skia\Avalonia.Skia\Avalonia.Skia.csproj" />
</ItemGroup>
<Import Project="Sdk.targets" Sdk="Xamarin.Legacy.Sdk" />
<!-- Workaround for https://github.com/dotnet/msbuild/issues/4584 -->
<Target Name="_RemoveNativeReferencesManifest" AfterTargets="BuiltProjectOutputGroup">
<ItemGroup>
<_BuiltProjectOutputGroupOutputIntermediate Remove="$(OutDir)$(_DeploymentTargetApplicationManifestFileName)" />
<BuiltProjectOutputGroupOutput Remove="$(ProjectDir)$(OutDir)$(_DeploymentTargetApplicationManifestFileName)" />
</ItemGroup>
</Target>
</Project>

Loading…
Cancel
Save