We are testing groupdocs.conversion, latest API for MAC OS application.
I have been trying to evaluate GroupDocs.Conversion on Visual Studio For Mac
2019, by adding GroupDocs.Conversion (latest stable 20.6.0) via NuGet Package
I intend to use the GroupDocs .net APIs on macOS.
Here are the issues that I’m facing when trying it in a Mac app:
- Solution->Target Framework->Xamarin.Mac Modern. When trying to install, it asks
to install the list of dependencies. When I click agree to move forward, The first
dependency i.e. Microsoft.NETCore.Jit is not installed by Nuget. The following is the
error in the Package Console:
“Could not install package ‘Microsoft.NETCore.Jit 1.0.2’. 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.”
Since it cannot be installed, this is out of the way. Isn’t there any
GroupDocs.Conversion package which doesn’t require JIT as I only need .net APIs?
- Solution->Target Framework->Xamarin.Mac Full (.NET framework 4.5). Only 4.5
works as in any other version the References in the project namely “System”,
“System.Core” and “Xamarin.Mac” are indicating in Red color.
In this case, GroupdDocs.Conversion is added successfully via Nuget.
Using your example code I tried the following code:
string documentPath = @“/Users/navneet/Desktop/1.docx"; // word file from
Office 365 for windows, same happens when using word file from office 365 for Mac
string outputPath = @“/Users/navneet/Desktop/1-PDF.pdf";
Console.WriteLine(System.IO.File.Exists(documentPath));// writes True in
using (Converter converter = new Converter(documentPath))// Fails here with
exception thrown, please see details below
PdfConvertOptions convertOptions = new PdfConvertOptions();
The System.IO.FileNotFoundException is thrown stating the file Aspose.Slides is not
found.Screen Shot 2020-06-17 at 10.47.27 PM.jpg (519.5 KB)
Screen Shot 2020-06-17 at 10.47.48 PM.jpg (583.3 KB)