dotnet核心中的MethodBuilder,ModuleBuilder和AssemblyBuilder在哪里?

Mig*_*boa 8 .net-core .net-standard

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

如果我在正确的位置,那么API文档声明这些构建器(MethodBuilder,ModuleBuilderAssemblyBuilder)是其中的一部分System.Reflection.Emit.

这是project.json我的图书馆:

{
  "version": "1.0.0-*",
  "buildOptions": {
    "debugType": "portable"
  },
  "dependencies": {},
  "frameworks": {
    "netstandard1.6": {
      "dependencies": {
        "NETStandard.Library": "1.6.0"
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

我还需要其他参考吗?

ani*_*ina 9

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