I’m referencing a dll (that I took from netstandard directory of a certain nuget package (which is aspose.drawing)) in my netframework project and some of the functionalities show error and won’t work (this is the message I get when I try to compile the project: “Error CS1069 The type name ‘Color’ could not be found in the namespace ‘System.Drawing’.”) and the project won’t build. But when I reference the exact same dll in a netstandard project, it works fine and there is no compile time error.
Isn’t it that a netstandard dll should work with any target framework types? I want to know, how the exact same dll works differently in different targeted framework projects? Is it has to do anything with built-in functionality of system.drawing in netstandard projects?
To solve this, I referenced the netframework version of the package in my netframework project and it did work fine, but the problem is, because of our third party handling system, I only can add one dll that all our projects would reference. So I wanted that all our projects to reference the netstandard version.
Any help would be appreciated.
Mohammad Javad Salehi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.