This seems confusing to me – im creating a class library, and adding all the necessary references for the source files contained in it.
Now, off the bat, there were over 300 compiler errors complaining about missing namespaces.
The library will now compile after i just added all of the System.* references, however this is obviously not the best way.
I.e. if a classes needs using System.Web.Script;, there is no System.Web.Script reference, how would i find out which one of these references contained it? System.Web didnt.
Yes a namespace and an assembly are two different concepts in .NET … They can, but don’t need to share a common name.
Best thing is to inspect the type your missing in MSDN (hit F1 in Visual Studio when your text cursor is above a class that you’re missing). The MSDN documentation will tell you which namespace and which assembly that type is defined in.