0

im using dotnet 6 and in dotnet 6 the Bitmap package was moved to a download only package, no problem here, I just installed it using dotnet Add-Package, but it still says it could not find the assembly System.Drawing.Common.

so i looked up in the project's files and it was mentioned there as viewable here
and no matter what i tried doing i kept getting this error and Bitmap continued not working.

line 6 (line with error) looks like this : IMAGE

any help will be appreciated. thanks

// Edit : sorry if the post is unclear' am not sure how to explain this

// well and english is not exactly the best

  • 1
    Does this answer your question? [.NET 6 System.Drawing.Common Runtime Switch](https://stackoverflow.com/questions/70310747/net-6-system-drawing-common-runtime-switch) – Charlieface May 08 '22 at 14:38
  • 1
    `System.Drawing.Common` uses Win32 GDI features, so is not available as standard in the .NET library. – Charlieface May 08 '22 at 14:39
  • answer ended up being that after installing it you just do System.Drawing.Bitmap, System.Draiwng.Common only adds features to normal System.Drawing. doesn't add a different assembly like i thought it did. stupid mistake, sorry for that, thanks for the help attempts though! – Questionnaire May 11 '22 at 14:54

0 Answers0