CoreCompat.System.Drawing + .NET Core 2.2 (System.Drawing) conflict
Hi!
Im migrating a .NET 4.6 app to .NET Core 2.2 and I found a problem using the FastReport.Core on it.
Since ASP.NET Core 2.2 already has System.Drawing, when I add reference to FastReport.Core and try to use the type "Image" on my application it shows:
Is there a way to fix this? I already tried to force reference the type using "System.Drawing.Image" on code but since both libraries implement it on the same namespace, it shows the same error and I couldn't find a way to work around this issue.
Im migrating a .NET 4.6 app to .NET Core 2.2 and I found a problem using the FastReport.Core on it.
Since ASP.NET Core 2.2 already has System.Drawing, when I add reference to FastReport.Core and try to use the type "Image" on my application it shows:
Error CS0433 The type 'Image' exists in both 'CoreCompat.System.Drawing, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' and 'System.Drawing.Common, Version=4.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
Is there a way to fix this? I already tried to force reference the type using "System.Drawing.Image" on code but since both libraries implement it on the same namespace, it shows the same error and I couldn't find a way to work around this issue.
Comments
2. alias, https://www.dotnetperls.com/using-alias