@hzexe commented on Sat Dec 02 2017
To software protection锛宭ike .NET Native.
There is no command line option to do that today, but it should not be hard to add one. We will be happy to accept PR to add it.
Of course, the features and tools that depend on the IL being present are not going to work with the IL removed.
Is possible remove IL code from xxx.ni.dll compiled by CrossGen?
Some IL could probably be removed but some of it must stay, crossgen isn't a full AOT compiler. For example, the IL of generic methods has to stay because the compiler has no way to know what instantiations may be needed at run time.
To software protection锛宭ike .NET Native.
The .NET Core/Open Source version of .NET Native is https://github.com/dotnet/corert. Still "work in progress" though.
Most helpful comment
Some IL could probably be removed but some of it must stay, crossgen isn't a full AOT compiler. For example, the IL of generic methods has to stay because the compiler has no way to know what instantiations may be needed at run time.
The .NET Core/Open Source version of .NET Native is https://github.com/dotnet/corert. Still "work in progress" though.