Skip to content

Type 'GraphicsUnit' exists in 'System.Drawing-dotnet-core, Version=1.2.3.0, Culture=neutral, PublicKeyToken=null' et 'System.Drawing.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' #16

Description

@flarive34rs

Hi,

I can't use FreeImage dotnet core GetBounds method because i have this error when I compile this :

using (var bmp = FreeImageBitmap.FromFile(filepath))
{
var units = System.Drawing.GraphicsUnit.Pixel;
var rect = bmp.GetBounds(ref units);
}

Type 'GraphicsUnit' exists in 'System.Drawing-dotnet-core, Version=1.2.3.0, Culture=neutral, PublicKeyToken=null' et 'System.Drawing.Common, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'

I need to have a reference to System.Drawing.Common in my project, i can't remove this reference.
It seems that your System.Drawing-dotnet-core interface assembly is having conflict with the real implementation by Microsoft (System.Drawing.Common)

I can't find anyway to solve this conflict :(

Please help :)

Thanks a lot !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions