[Question] Can this be used to save a dynamic assembly to disk?
See original GitHub issueAs it is currently not possible to use ref emit AssemblyBuilder.Save
from .NET Standard 2.0 - can this lib be used for that?
I’m going to do code gen using ref emit, will I then be able to save the resulting assembly to disk using this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
Is it possible to save a dynamic assembly to disk?
Is there a way to save dynamic assemblies to disk so that I can reflect them? EDIT / My Answer: Wow, it took...
Read more >How Do I Emit And Save To Disk An Asembly Dynamically?
Save and provide an assembly filename,SimpleDyn. dll in this case. I have also tried to use other overloaded appDomain.
Read more >AssemblyBuilder.Save Method (System.Reflection.Emit)
Saving a dynamic assembly to disk is only supported in .NET Framework. This method saves all non-transient dynamic modules defined in this dynamic...
Read more >Creating a dynamis assembly and saving into disk
The following code snippet will create a dynamic assembly in the given name and save it into local disk. We can use this...
Read more >System.Reflection.Emit.AssemblyBuilder.Save #15704
Our use case in Castle DynamicProxy is to write out dynamically created assemblies to disk so we can run peverify over the assembly...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve opened a new issue https://github.com/0xd4d/dnlib/issues/308 . I don’t know when I’ve time to finish it, it’s not difficult, just a lot of code.
I see, thanks for clarifying.
Tried that before I tried this, and failed there too unfortunately. Failed on this:
https://github.com/Lokad/ILPack/issues/107#issuecomment-533771081
and that was reported some time ago, and don’t seem to be fixed.
So seems this story (saving generated assemblies to disk on net core) is kind of status quo since a few years back.