netcorehost icon indicating copy to clipboard operation
netcorehost copied to clipboard

Executing from Bytes instead of from Disk

Open fetzsav opened this issue 2 years ago • 1 comments

There is a Load method from which you can load an assembly from Bytes in memory versus having the path on disk. I have been unable to find support for this in this crate. Are there any plans for this, or is there anyway it is already possible?

fetzsav avatar Aug 02 '22 15:08 fetzsav

I think the appropriate API is only available in hostpolicy, while this crate only uses hostfxr.

OpenByteDev avatar Aug 28 '22 14:08 OpenByteDev

This was added with .NET 8: https://github.com/dotnet/runtime/blob/main/docs/design/features/native-hosting.md#loading-managed-components-net-8-and-above

OpenByteDev avatar Jun 11 '23 20:06 OpenByteDev

Implemented in 5c3e985dab37981fb944417c3bbc8f9fd4637ea4

OpenByteDev avatar Jul 10 '23 23:07 OpenByteDev

Published in 0.15.0

OpenByteDev avatar Jul 31 '23 18:07 OpenByteDev