New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude Nuget Packages from native compilation #6994

homer90 opened this Issue Feb 11, 2019 · 1 comment


None yet
2 participants
Copy link

homer90 commented Feb 11, 2019

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.
Each of the plugins also references those two NuGet Packages.

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.


This comment has been minimized.

Copy link

jkotas commented Feb 11, 2019

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 .

@jkotas jkotas closed this Feb 11, 2019

@jkotas jkotas added the Question label Feb 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment