How to add a reference to assembly in C#?
.net, c#, c#-4.0
Solution
For completeness, and in the unlikely event that you are not using Visual Studio (which you didn't specify), you can add assembly references to `csc` using the `/r:` compiler option. Likewise with the `<References>` element of the `<Csc>` task in `msbuild`.
Problem
I am getting the error: the type 'system.windows.controls.control' is defined in an assembly that is not referenced". How to add a reference to assembly?