-
Notifications
You must be signed in to change notification settings - Fork 6k
Question on instructions for smaller footprint self-contained app #1381
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
Comments
This question is premature: There's still some work being done on this right now (dotnet/sdk#450 (comment)). I'll reopen later if needed. |
I think the reason you aren't seeing a size difference is because your app is referencing ASP.NET MVC, which probably brings in most everything that you could cut out by switching to the "smaller" footprint method. Try it on a "Hello World" console app and you should probably see a size difference. |
This subject makes more sense to me now. It's been explained to me that currently there is no difference between There is a problem here (or a pair of problems).
The words "using" and "includes" in the first part of the statement are troublesome: A The other thing is that it really doesn't matter if the |
/cc @rpetrusha |
I think this should go back to closed for now. I'll check again when 2.0 lands. If I can't get the small-footprint self-contained app working, I'll reopen at that time. |
@blackdwarf @mairaw
In ...
https://github.com/dotnet/docs/blob/master/docs/core/preview3/deploying/index.md#deploying-a-self-contained-deployment-with-a-smaller-footprint
... where it discusses changing ...
[Note: My test app is 1.1, so I changed that ☝️ to 1.1 over what's in the doc.]
... to ...
I published the app both ways ... with the
TargetFramework
set tonetstandard1.6
and with it set tonetcoreapp1.1
and there was no difference in size: 45.5 MB (both down from 53.9 MB when usingMicrosoft.NETCore.App
). Both apps run fine, and the published output looks identical.Can you clarify the difference between using those two target frameworks, since I don't see a difference in app size or runtime behavior? If there is no difference, then why does the instruction say to change the
TargetFramework
?Test project: https://github.com/GuardRex/testselfcontained
The text was updated successfully, but these errors were encountered: