1 year ago

#308630

test-img

Diego Freitas

How Rider deals with C# external dependencies classes

I'm trying to access an external dependency class with Rider (cmd + click) and my code comments on original source code are disappearing during the decompile process by Rider. There is a way to avoid this behavior? I would like to keep seeing the comments of original source code.

Here is a print screen example of class that are showed by Rider and being decompiled instead of showing the original source code:

// Decompiled with JetBrains decompiler
// Type: Example.IEncoder`1
// Assembly: Example.PlayerProfile, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 9BA1395C-E8B1-420E-A723-B1994991D68B
// Assembly location: /Users/user-test/temp/example-project/ExampleClient/Library/ScriptAssemblies/Example.PlayerProfile.dll

using Google.Protobuf.Collections;
using System.Collections.Generic;

namespace Example.PlayerProfile
{
  public interface IEncoder<TPlayerProfile> where TPlayerProfile : Example.Entities.PlayerProfile {}
}

Here is the original source code with the code comments that I was expecting to see when cmd + click on class dependency:

using System.Collections.Generic;
using Google.Protobuf.Collections;

namespace Example.PlayerProfile
{
    /// <summary>
    /// Example of comment in code class
    /// </summary>
    public interface IEncoder<TPlayerProfile> where TPlayerProfile : Entities.PlayerProfile {}
}

c#

rider

decompiler

0 Answers

Your Answer

Accepted video resources