thermofisherlsms / RawFileReader

Other
43 stars 17 forks source link

NativeAOT Compilation #9

Open mobiusklein opened 3 months ago

mobiusklein commented 3 months ago

Has the library been compiled successfully as either a static or shared library with .NET 8? While I was able to get a shared library to build on Windows, it would fail on attempting to open the file with the following FileError value:

Error Encountered ThermoFisher.CommonCore.RawFileReader.Facade.MemoryMappingRawFileLoader

There were several warnings about reflection being used to compute sizes during marshaling where a compile time alternative is available as well.

This feature would let the C# library be wrapped and used as though it were an opaque C library. Using it as-is is still possible with nethost or some other native hosting layer as long as the machine already has a suitable .NET runtime version already installed.

jshofstahl commented 3 months ago

We do have some internal builds of RawFileReader against .Net 8 but I need to check to see if the code is ready for external release.