Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Exclude Nuget Packages from native compilation #6994
I am converting one of my applications to CoreRT. It's a plugin system with 1 main application and many small dlls that are loaded by the main application.
The main application (.exe) references NuGet Packages Newtonsoft.Json and SharpDX.
So when building one plugin it's size is over > 20MB and generating native code taks about 2 minutes.
Is it possible to exclude those NuGet Packages from native compilation for my plugins as they are already present/loaded in the main application? Thanks.
CoreRT sweet spot are applications that the AOT compiler can see in its entirety and that do not load other parts dynamically.
dotnet/designs#52 is a better fit for applications with plugins. We expect that to use some of the CoreRT tech to make this better over time.
Also, this problem space is discussed in #6949 .