Missing Namespaces ...
-
... sorry if this is a dumb question - but I am creating a new class library and need to use the Image class. The System.Drawing (and System.Drawing.Imaging etc) namespaces are not available and I guess this is because I have not selected a Windows Application. Is there an easy way to use these missing namespaces when creating a new class library? Thanks Barry
-
... sorry if this is a dumb question - but I am creating a new class library and need to use the Image class. The System.Drawing (and System.Drawing.Imaging etc) namespaces are not available and I guess this is because I have not selected a Windows Application. Is there an easy way to use these missing namespaces when creating a new class library? Thanks Barry
You need to add the System.Drawing.dll assembly to your project. Right-click on your project, select Add Reference, then double-click the System.Drawing.dll assembly and click OK.
Microsoft MVP, Visual C# My Articles