'Can't Add Reference to Visual C# Console App in Visual Studio
I have created a Visual C# Console App and I am trying to add reference to resolve an error. Since I am new to the IDE and I am looking for some help on how to add the Reference via the editor. I am trying to connect to Azure Storage via this app.
Attaching the screen shot.
I used the general resolution saying
- In Solution Explorer, double-click the My Project node for the project.
- In the Project Designer, click the References tab.
But I am not seeing the References tab to add Reference.
Solution 1:[1]
Thanks for help. First place I was supposed to create a 'Console App (.Net Framework' instead I mistakenly chose Console App (.NET Core). Now I am ble to see the Refrences. Thanks for the help.
Solution 2:[2]
First of all switch the Solution Explorer view by clicking button in the header as shown in the below image:
After that you will find the "References" node in the tree. Right click and then choose Add Reference
References:
Managing references in a project
How to: Add or Remove References By Using the Add Reference Dialog Box
Solution 3:[3]
If you want to use .NET Core (.NET) instead of .NET Framework, just install this package in PM:
PM> Install-Package System.Configuration.ConfigurationManager -Version <YourCompatibleVersion>
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 | Abhi |
Solution 2 | Niranjan Singh |
Solution 3 | pkucas |