Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Exclude Nuget Packages from native compilation #6994

Closed
homer90 opened this issue Feb 11, 2019 · 1 comment
Closed

Exclude Nuget Packages from native compilation #6994

homer90 opened this issue Feb 11, 2019 · 1 comment
Labels

Comments

@homer90
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.

@jkotas
Copy link
Member

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 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants