Open
Description
Tools of all kinds benefit from fast execution speeds, so compiling them for AOT makes sense. .NET Tools are a very easy way to distribute tools, so it would seem natural that tools be able to be AOT compiled. There are a few hurdles that would need to be cleared first, though:
- Tools would need to support a notion of RID-specificity
- We would need to be able to indicate that certain already-compiled binaries should be packaged as the RID-specific version of a tool
- on tool install, we'd need to be able to detect if a tool was already-compiled and not create the apphost shim for that tool
Another, potentially more crazy idea might be to on-demand AOT a tool for the current platform on tool install. This could require data that we don't already have packaged in the tool, and might require dependencies like a C/C++ compiler that aren't part of our already-expressed dependency tree for the SDK.