【发布时间】:2020-01-05 06:15:31
【问题描述】:
我在 Ubuntu 18.10 上使用 Rider 2019.2.3,并安装了版本 3.1.100 的 .NET SDK。
当我尝试导航到反编译的源时,有时我只会看到方法的声明而没有它们的实现,例如:
public static class IdentityServiceCollectionExtensions
{
public static IdentityBuilder AddIdentity<TUser, TRole>(
this IServiceCollection services)
where TUser : class
where TRole : class;
...
}
Rider 从程序集 /usr/share/dotnet/packs/Microsoft.AspNetCore.App.Ref/3.1.0/ref/netcoreapp3.1/Microsoft.AspNetCore.Identity.dll 获取此源。我检查了它的 IL 代码,看起来这个程序集只包含方法的存根,而没有它们的实现。
所以我有几个问题:
- ASP.NET Core 库的实际程序集在我的计算机上的位置是什么?
- 如何强制 Rider 反编译实际程序集?
我的.csproj 指定了Microsoft.NET.Sdk.Web SDK,所以我想也许我应该安装一些特殊的SDK 用于Web 开发,但我找不到任何相关信息。
【问题讨论】:
-
@KeithNicholas,是的,我知道在哪里可以远程找到它,但我想知道,在计算机上哪里可以找到实际的程序集。
-
您可能想澄清第 1 点。然后
标签: c# .net ubuntu .net-core rider