views:

186

answers:

3

I used to see any .net source code (like System.String) with ReSharper and Visual Studio 2008. since I migrated to Visual studio 2010, this option doesn't give the full source code but just the definitions of the class.

How can I fix this, to use the microsoft's symbols server again?

Edit: Maybe the problem is only with .net-4.0 assemblies. is microsoft released symbols to to .net-4.0 assemblies also?

+1  A: 

If you go to ReSharper -> Options -> Tools -> External Sources, you can set the preference order of where ReSharper gets its definition view from. Make sure "Sources from symbol files" is checked, and check the options at the bottom of that page.

adrianbanks
+2  A: 

You can download all of the source and symbols and install it in one go.

http://blogs.msdn.com/b/rscc/

and then follow adrian's advice.

Sky Sanders
I suspect the problem is with .net-.4 assemblies.
stacker
A: 

Microsoft released sources for .NET 4 release, so R# have to work just fine. Some debugging information may be found in View -> Output -> ReSharper after unsuccessful navigation. Sometimes R# can't download sources or symbols files because of server errors on referencesource.microsoft.com side.

shalupov
This is where it trying to download for `mscorlib.pdb`: http://msdl.microsoft.com/download/symbols/mscorlib.pdb/A21F40D38EAB4B64B449E50DE8F5A3431/mscorlib.pdb
stacker
I found and fixed one bug in .NET 4 symbols support. It'll be available in ReSharper 5.1.1 maintenance release soon.
shalupov
@shalupov thanks. I noticed that I can step into the code when debugging, but not look on the source code when ctrl + click on the class name.
stacker
In addition, when ctrl + click on the class name, I'm getting two windows opened: metadata window, and regular (not source code) window. I think this is maybe because I using also Productivity Power Tools extension.
stacker

related questions