dotnet compile --native should pass app dependencies to ILC.exe
This functionality was taken out because the CoreRT framework libraries are currently only included in the AppDepSDK Nuget package.
We need to think about where the framework libraries will eventually come from, and how we deal with third party app dependencies.
/cc @gkhanna79 @schellap @livarcocc
@brthor - To confirm, are you saying that "-r" is only passed for System.Private.Corelib.dll and AppDepSDK?
@gkhanna79, we need more libraries in AppDepSDK like EntityFramework. If there are third party libraries, how is ILC supposed to work? Will we do -r ThirdPartyLib.dll to produce a single large EXE or our goal is to have a native image for each IL binary? I think our goal is the latter.
Longterm, acquisition of 3rd party libraries would be part of restoring the app which would declare dependency on such libraries. At that point in time, dotnet compile native should be passing -r for all libraries constituting the app to ilc.
--ilcargs "-r reference1.dll -r reference2.dll" can be passed in such a case as of now.
this includes packaging for aot things. Today projects only target dnxcore50 but the aot things are netcore50 and this needs to be sorted
@gkhanna yes currently only appdepsdk/*.dll and System.Private.CoreLib are passed as references
@davidfowl - I agree. Who is driving that? @richlander may have some context on who maybe driving the transition to netcore50.
@brthor can you start linking issues for the pre-requisites of this issue?
@piotrpMSFT Child issues have been created.
dotnet/cli#402 dotnet/cli#404 dotnet/cli#405 dotnet/cli#406
@schellap @gkhanna79 Please review these issues to ensure we are still on the same page. Feel free to offer any corrections.
@schellap You have been working on this. Want to take this issue?
@schellap do we want to move this over to dotnet/corert?
@nattress Can you please create an issue to reference this and close this one?
@nattress ping
See https://github.com/dotnet/corert/issues/1584