'C# - Add assembly reference in VSCode
How can I add an assembly reference to my project without using Visual Studio? I don't exactly know what an assembly reference is, but I'm being told I'm missing one and answers to my problem tend to start with "Right click here in Visual Studio...".
Code:
using System.Windows.Forms;
Error:
The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)
Solution 1:[1]
When you go to create a windows form project you should use the "dotnet new winforms" command to create a winforms project. Which is where I am assuming you went wrong. If you just want to know how to add refferences in vscode try How do I add assembly references in Visual Studio Code?.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Daniel Kelsch |
