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?
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
.
Solution Explorer > References (Rigth-click) > Add Reference
Search for System.Windows
and add it to your references.
Also see the documentation: How to: Add or Remove References By Using the Add Reference Dialog Box
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With