Search code examples
c#.netubuntu.net-corerider

Decompile ASP.NET Core 3.x sources in Rider


I use Rider 2019.2.3 on the Ubuntu 18.10 with installed .NET SDK of version 3.1.100.

When I try to navigate to decompiled sources I sometimes see only declaration of the methods without their implementations, for example:

public static class IdentityServiceCollectionExtensions
{
    public static IdentityBuilder AddIdentity<TUser, TRole>(
      this IServiceCollection services)
      where TUser : class
      where TRole : class;
    ...
}

Rider took this source from the assembly /usr/share/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.1.0/ref/netcoreapp3.1/Microsoft.AspNetCore.Identity.dll. I inspect the IL code of it and it looks like this assembly contains only stubs for methods without their implementations.

So I have a couple of questions:

  1. What is the location of the actual assemblies of ASP.NET Core libraries on my computer?
  2. How can I force Rider to decompile actual assemblies?

My .csproj has Microsoft.NET.Sdk.Web SDK specified, so I thought that maybe I should install some special SDK for web development, but I can't find any information about this.


Solution

  • Navigation into decompiled method body in .NET Core 3.0 fixed in JetBrains Rider 2019.3. Please update your version to the latest available release.