Hi.
I created a simple application .NET 6.0, which inserts an image into a pdf.
For this I use Aspose.Drawing instead of System.Drawing.Common.
But when I run the application, I get an error:
“Could not load file or assembly ‘System.Drawing.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’. The specified file cannot be found.
at Aspose.Pdf.Page.#=zXTW$Crg=(Stream #=zOe3aYl4=, Rectangle #=zxM87xV8=, Matrix #=zEcYOrp_b6FXa, CompositingParameters #=zTa1KX3b4Y1HYTq$R$Rewk1Y=, #=zxxOyLC020CcmMkhiy4tXZ9yq8xB1La74eQ==& #=z59bWe0TdaWuI, Boolean #=z5gIm5QQ=, Int32 #=zQVs0TO7lIWeW)\r\n at Aspose.Pdf.Page.#=zXTW$Crg=(Stream #=zOe3aYl4=, Rectangle #=zxM87xV8=, CompositingParameters #=zTa1KX3b4Y1HYTq$R$Rewk1Y=)\r\n at Aspose.Pdf.Page.AddImage(Stream imageStream, Rectangle imageRect)\r\n at Program.$(String[] args) in C:\Users\Yura\Documents\Visual Studio 2022\Projects\ConsoleApp1\ConsoleApp1\Program.cs:line 26”
What have I done wrong?
ConsoleApp1.zip (181.1 KB)