Navigate to source and .NET Core

Completed

I create fresh .NET Core 2.0 Console project in Visual Studio 2017 on Windows. Then I try to navigate to source (ctrl + click) to `System.Console.WriteLine` method. It fails to find source code with symbol files and decompiles target assembly. Problem is target assembly (from nuget package  microsoft.netcore.app\2.0.0\ref\netcoreapp2.0\System.Console.dll) is a stub so it does not contain any implementation (all methods are empty or throw NotImplementedException). Is there any way I can navigate to actual source code with Resharper from Visual Studio (either with symbols or decompilation of assembly with actual implementation)?

0
8 comments

Hello Evgeny!

 

Thank you for contacting us.

Could you please specify R#  version you are using?

Thank you.

0

I'm using the last version of Resharper (2017.2.2).

0

Thank you for the reply, Evgeny!

 

  1. Could you please specify if the issue is reproduced only in some specific solution or in any newly created also?
  2. What language is set in your system by default?
  3. Could you possibly provide some screenshots illustraing the problem.

Thanks in advance!

0

1. The issue is reproduced in newly created solution. To reproduce I just need to create fresh .NET Core 2.0 console project ("new project" > .NET Core > Console App (.NET Core))

2. Default language of my operating system is russian.

3. After creating fresh .NET Core console project - there is default Main method with System.Console.WriteLine statement. When I ctrl+click on this method, I see the following:

As you can see from screenshot, first Resharper tried to load symbols for System.Console from microsoft symbol servers, but failed to do so ("No debugging information found on symbol servers ..."). Then it navigated me to decompiled source code, but it's just a stub - all methods are empty. I understand that target assembly is indeed a stub with empty methods, so I was asking if that's possible to somehow decompile assembly with actual implementation or get required source code by other means (with guidance from symbols).

0

Hello Evgeny!

 

Sorry didn't realize what's the problem at once.

Turned out it's the bug, I've filed it here - https://youtrack.jetbrains.com/issue/RSRP-466583

You are welcome to comment or vote for it.

Thank you.

0

The issue still exists with Rider & .NET Core (at least w/ .NET Core 3.0 preview 8).

0

Hello Alex,

Could you please specify your Rider version (Help | About or JetBrains Rider | About)? 

0

Hello Alex,

I've reproduced the issue and filed it on our tracker. Thank you for pointing us to it. 

0

Please sign in to leave a comment.