We have a Visual Studio solution with 2 projects:
- ASP Net 4.7.2 console app
- netstandard 2.0 classlibrary with Aspose.Slides
(see attachment of sourcecode and Visual Studio Solution)
When we call our netstandard library from the ASP Net 4.72 console app we receive this error:
Aspose.Slides.PptxReadException
HResult=0x80131500
Message=System.Drawing is not supported on this platform.
Source=Aspose.Slides
StackTrace:
at .(Presentation , Stream , InterruptionToken )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(String , Boolean )
at Aspose.Slides.Presentation…ctor(String file)
at ClassLibrary.AsposeTest.Test() in C:\Users\Administrator\Source\Repos\AsposeStandardTest\ClassLibrary\AsposeTest.cs:line 9
at AsposeStandardTest.Program.Main(String[] args) in C:\Users\Administrator\Source\Repos\AsposeStandardTest\AsposeStandardTest\Program.cs:line 9
This exception was originally thrown at this call stack:
System.Drawing.Image.FromStream(System.IO.Stream)
Aspose.Slides.ImageCollection.( )
.( )
.( )
.( , Aspose.Slides.IPresentation)
.(Aspose.Slides.Presentation, System.IO.Stream, Aspose.Slides.InterruptionToken)
Inner Exception 1:
PlatformNotSupportedException: System.Drawing is not supported on this platform.
The same setup does work for Aspose.Cells but apparently not for Aspose.Slides.
- any chance you can fix this?
- are there any plans to remove the dependency on System.Drawing? Aspose.Words is using SkiaSharp and Aspose.Pdf is in the progress of migrating to Aspose.Imaging.
AsposeStandardTest.zip (548.7 KB)