Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 Reference Manager is empty

I'm trying to add a reference to System.Configuration assembly in Visual Studio 2017 Community edition. I'm targeting .net 4.5 version and .net classic. However, I can't find any assemblies in reference manager.

Am I missing something here? Where are the standard framework assemblies? Is it normal that Framework tab is empty?

enter image description here

like image 641
Oscar Avatar asked Apr 04 '17 21:04

Oscar


People also ask

How do I fix missing references in Visual Studio?

To fix a broken project reference by correcting the reference path. In Solution Explorer, right-click your project node, and then select Properties. The Project Designer appears. If you're using Visual Basic, select the References page, and then click the Reference Paths button.

How do I enable references in Visual Studio?

Press Shift + F12 to find all references.

How do I open the Reference Manager in Visual Studio?

Restart Visual Studio, create a new C# UWP app project, and then right-click on the project and choose Add Reference. Go to the Windows tab, then the Extensions sub-tab, and select the Extension SDK. Look at the right pane in the Reference Manager. If it has dependencies, they will be listed there.


2 Answers

I overlooked this being a .NET Framework targeted project rather than a .NET CORE

Please see below assembly location.

.NET Framework

like image 137
William Humphries Avatar answered Nov 09 '22 03:11

William Humphries


Targeting .NETStandard 1.4

That is not ".net classic", you picked a new project template that is available since VS2017. .NETStandard is pretty similar to PCL of old, it helps you create a portable class library that is usable on multiple platforms. An improvement over PCL, you no longer have to select which specific platforms you want to support. Being "standard", all framework assemblies you could pick are already included, that's why the list is empty. PCL worked the same way.

Beware that there are a lot of Class Library project templates around and choosing the wrong one is easy to do. You'll have to pick the one named "Class Library (.NET Framework)", that's the one that targets the classic desktop version and gives you a non-empty list to choose from.

like image 43
Hans Passant Avatar answered Nov 09 '22 02:11

Hans Passant