3 ms·
Nice hack. What happens if you run it on an unsupported platform? At the very least, I'd expect a runtime exception, ideally on startup. But how do you check wh
by choeger 5y ago
Nice hack. What happens if you run it on an unsupported platform? At the very least, I'd expect a runtime exception, ideally on startup. But how do you check whether you can actually evaluate that assembly with the given ABI?
- ReleaseCandidat 5y ago> But how do you check whether you can actually evaluate that assembly with the given ABI? AFAIK you cannot get the RID at runtime, but you can easily set the RID of your program/package to the supported platforms only https://docs.microsoft.com/en-us/dotnet/core/rid-catalog https://docs.microsoft.com/en-us/dotnet/core/rid-catalog
- MisterTea 5y ago> But how do you check whether you can actually evaluate that assembly with the given ABI? I'd avoid assembler unless its separated into an architecture specific file. Otherwise this hack is asking for trouble.