.net-core - dotnet核心中的MethodBuilder,ModuleBuilder和AssemblyBuilder在哪里?

标签 .net-core .net-standard

我正在将.Net Framework库迁移到.Net标准,并且编译器无法从System.Reflection.Emit中找到核心构建器。

如果我在正确的位置,那么API文档说明这些构建器(MethodBuilderModuleBuilderAssemblyBuilder)是 System.Reflection.Emit 的一部分。

这是我的图书馆的project.json:

{
  "version": "1.0.0-*",
  "buildOptions": {
    "debugType": "portable"
  },
  "dependencies": {},
  "frameworks": {
    "netstandard1.6": {
      "dependencies": {
        "NETStandard.Library": "1.6.0"
      }
    }
  }
}

我需要其他引用吗?

最佳答案

您可以在netstandard1.6框架的"System.Reflection.Emit": "4.3.0" nuget包中找到它们。

关于.net-core - dotnet核心中的MethodBuilder,ModuleBuilder和AssemblyBuilder在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42075766/

相关文章:

c# - 对于 .net core 3.0 中的 wpf 项目,Xaml UI Designer 处于非事件状态

c# - DotNet Core,没有为此 DbContext 配置数据库提供程序

c# - 如何在 C# 中向线程添加函数?

visual-studio - 如何捕获立即崩溃的 Azure 函数的控制台输出?

kubernetes - 用于 Azure Key Vault secret 的 AKS Kubernetes CSI 驱动程序的 .Net 核心配置提供程序

c# - 无法翻译 LINQ 表达式,将对其求值

c# - 如何从 Azure 函数返回 AcceptedAtRouteResult?

.NET 标准和运行时要求

.net - 测试我的 NuGet 包,包出现 "project cannot be viewed in the object browser"错误,但包含的 DLL 没有

.net - HttpServerUtility.UrlTokenEncode 替换 netstandard