Can I generate a .NET Core assembly with Cecil? #799
Replies: 1 comment
-
A typical problem is generating core/5+ assemblies when the generating code is .NET framework (or vice versa) and using Try looking at your generated assembly's AssemblyRef table in ILSpy and/or running it through ILVerify to identify what the problem is. If the problem is such bad type imports, you'll need to either build your code generator to match the target platform of the generated assembly, or construct |
Beta Was this translation helpful? Give feedback.
-
I am using cecil as an IL code generator instead of reflection.emit, which will not currently work for .NET Core as far as I know. I use AssemblyDefinition, TypeDefinitions and MethodDefinitions in the obvious ways. However, I am having trouble consuming the resulting assemblies from other .NET Core contexts. I would like to know if writing .NET Core assemblies is supported? I am worried that the TargetRuntime enum does not contain any references to .NET Core.
BR PV
Beta Was this translation helpful? Give feedback.
All reactions