Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 missing XML comments / documentation

Is it me or are the XML comments missing for System.Linq in Visual Studio 2015? Because I can still find it on MSDN. But when typing, for example, this code:

var list = new List<string>();
list.Select(

IntelliSense doesn't provide the comments/documentation for any class/method/member/extension in the System.Linq namespace: enter image description here

Here is a preview when hitting (Alt + )F12 to go to definition for a random extension method on Enumerable: enter image description here
I think I didn't notice the docs in Visual Studio 2013 either. But I do remember them being there once upon a time, perhaps that was in Visual Studio 2012 or before?

EDIT: I've forgot to mention that I've Resharper 10 Ultimate installed in Visual Studio 2015. I've also had Resharper 8 and 9 installed in Visual Studio 2013.

like image 789
QuantumHive Avatar asked Jan 26 '16 09:01

QuantumHive


2 Answers

I had the same problem but for a whole framework (4.6). In fact, I missed all the XML files for the whole Framework assemblies in the folder "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.6".

The problem was that I installed the Microsoft .NET Framework 4.6 Targeting Pack that I got from the MSDN download center, but I missed the other smaller msi package that got along. The main package only installs the necessary assemblies, and you have to install the other one (ENU, ITA, etc.) to get those XML files in the language chosen on the download page.

like image 148
Sebastien Pellizzari Avatar answered Oct 24 '22 20:10

Sebastien Pellizzari


The xml comments / documentation isn't broken but your intellisense is.

Go to definition for external types will only show you a version from metadata of the source code.

Which is why you get this at the the top:

#region Assembly System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Core.dll
#endregion

And it says [from metadata]:

enter image description here

I see the same going to definition on Select, but I do get more intellisense than in your screenshot:

enter image description here

like image 34
NikolaiDante Avatar answered Oct 24 '22 21:10

NikolaiDante