Open jakubmisek opened 3 years ago
Some additional information: adding the packages works after switching target framework to Xamarin.Mac Full, but the namespace Xamarin.Forms.Platform.MacOS disappears, don't know if this is a bug or intended functionality.
When trying to add a package created with peachpie to a Xamarin.Mac project but i get the following error: Unable to resolve dependency 'SixLabors.Fonts'. Source(s) used: 'nuget.org'. I'm assuming this means that SixLabors.Fonts is not available for Xamarin.Mac
In such a case, the whole "graphics" extension can be excluded from the application.
By default, implicitly, a PeachPie project references Peachpie.App
package which includes all the available extensions.
Alter the project file as the following:
<Project Sdk="Peachpie.NET.Sdk">
<PropertyGroup>
<DisableImplicitPeachpieReferences>true</DisableImplicitPeachpieReferences>
</PropertyGroup>
<ItemGroup>
<!-- do not reference entire PeachPie.App, only a few libraries are needed -->
<PackageReference Include="Peachpie.Runtime" Version="$(PeachpieVersion)" />
<PackageReference Include="Peachpie.Library" Version="$(PeachpieVersion)" />
<!--PackageReference Include="Peachpie.Library.XmlDom" Version="$(PeachpieVersion)" /-->
<!--PackageReference Include="Peachpie.Library.Graphics" Version="$(PeachpieVersion)" /-->
<!--PackageReference Include="Peachpie.Library.Scripting" Version="$(PeachpieVersion)" /-->
</ItemGroup>
</Project>
Excellent, thanks.
When building an application targeting Xamarin.Mac:
Could not install package ‘Mono.Posix.NETStandard 1.0.0’. You are trying to install this package into a project that targets ‘Xamarin.Mac,Version=v2.0’, but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Found a workaround (not tested), originally posted on https://forum.groupdocs.com/t/document-merger-net-apis-on-mac-os/8476