sdk icon indicating copy to clipboard operation
sdk copied to clipboard

dotnet compile --native should pass app dependencies to ILC.exe

Open brthor opened this issue 11 years ago • 14 comments

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 avatar Nov 19 '15 01:11 brthor

@brthor - To confirm, are you saying that "-r" is only passed for System.Private.Corelib.dll and AppDepSDK?

gkhanna79 avatar Nov 19 '15 01:11 gkhanna79

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

schellap avatar Nov 19 '15 01:11 schellap

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.

gkhanna79 avatar Nov 19 '15 02:11 gkhanna79

--ilcargs "-r reference1.dll -r reference2.dll" can be passed in such a case as of now.

schellap avatar Nov 19 '15 02:11 schellap

this includes packaging for aot things. Today projects only target dnxcore50 but the aot things are netcore50 and this needs to be sorted

davidfowl avatar Nov 19 '15 02:11 davidfowl

@gkhanna yes currently only appdepsdk/*.dll and System.Private.CoreLib are passed as references

brthor avatar Nov 19 '15 03:11 brthor

@davidfowl - I agree. Who is driving that? @richlander may have some context on who maybe driving the transition to netcore50.

gkhanna79 avatar Nov 19 '15 15:11 gkhanna79

@brthor can you start linking issues for the pre-requisites of this issue?

TheRealPiotrP avatar Nov 23 '15 21:11 TheRealPiotrP

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

brthor avatar Dec 03 '15 21:12 brthor

@schellap You have been working on this. Want to take this issue?

brthor avatar Feb 08 '16 22:02 brthor

@schellap do we want to move this over to dotnet/corert?

thesmithee avatar Jul 21 '16 23:07 thesmithee

@nattress Can you please create an issue to reference this and close this one?

gkhanna79 avatar Jul 21 '16 23:07 gkhanna79

@nattress ping

TheRealPiotrP avatar Jul 27 '16 17:07 TheRealPiotrP

See https://github.com/dotnet/corert/issues/1584

nattress avatar Jul 27 '16 19:07 nattress