net8.0 and Windows OS
error CS0433: The type ‘Bitmap’ exists in both
‘Aspose.Drawing, Version=23.7.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ and
‘System.Drawing.Common, Version=8.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51’
Public System.Drawing.Bitmap Types in Aspose.Diagram ( = v23.9 ) doesn’t Cause Conflict.
@Shinohara
Please allow us to gather the relevant details and we will get back to you shortly.
@Shinohara
Can you please explain, where you are facing this problem with PUB library? This error message - “error CS0433: The type ‘Bitmap’ exists in both” - is this a result of compile PUB lib or it’s another compilation?
PUB library uses System.Drawing.Common, but doesn’t use Aspose.Drawing.
I have discovered that conflicts occur with combinations of Aspose.PSD and other packages.
simple example:
using (var psd = Aspose.PSD.Image.Load(“c:\temp\test.vsd”)) {
var bitmap = new System.Drawing.Bitmap(100, 100);
}
When adding the Aspose.PDF (24.7) and Aspose.PSD (24.7) packages, building the code results in a CS0433 error. No error occurs with the combination of Aspose.PDF (24.7) and Aspose.PSD (23.9)
Replacing Aspose.PDF (24.7) with System.Drawing.Common (8.0.0) results in the same issue.
Thank you for your attention
@Shinohara
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PUBNET-390
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.