We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Public System.Drawing.Imaging Types in Aspose.Slides.dll Cause Conflict

error CS0433: The type 'ImageFormat' exists in both 
'Aspose.Slides, Version=, Culture=neutral, PublicKeyToken=716fcc553a201e56' and
 'System.Drawing.Common, Version=6.0.0

image.png (22.0 KB)image.png (4.8 KB)

Thank you for contacting support.

Please share the simplest project that reproduces the error you are encountering.

A post was split to a new topic: The Type ImageFormat Exists in Both Aspose.Slides and System.Drawing.Common

Our developers have investigated the case. You should use extern alias for Aspose.Slides.

More details:


is the “external alias”-suggestion only valid for the current version or is it supposed to stay the same in future versions?

The issue is not related to Aspose.Slides directly because there may be two other libraries with the same issue. This is a C# mechanism used when two versions of assemblies with the same fully-qualified type names are added to your project. Therefore, it should also remain the same for future versions of Aspose.Slides for the case.