For example:
dotnet new console
dotnet publish -r win-x64
The output directory will contain files like:
createdump.exe - only useful when trying to create a managed dump of the app's process
clrgc.dll - only useful when wanting to use different GC for the app (otherwise the default GC is part of coreclr.dll)
msquic.dll - only useful when using HTTP3 functionality
mscordaccore* and mscoredbi* - only useful for debugging
- ... possibly others
Currently there's no way to tell the SDK to exclude some of these. Even with trimming turned on, some of these files are still there (and not used).
We should reconsider the list of files included in self-contained apps by default and if it would make sense to provide options to either opt-in or opt-out for some of them.
/cc @richlander
For example:
The output directory will contain files like:
createdump.exe- only useful when trying to create a managed dump of the app's processclrgc.dll- only useful when wanting to use different GC for the app (otherwise the default GC is part ofcoreclr.dll)msquic.dll- only useful when using HTTP3 functionalitymscordaccore*andmscoredbi*- only useful for debuggingCurrently there's no way to tell the SDK to exclude some of these. Even with trimming turned on, some of these files are still there (and not used).
We should reconsider the list of files included in self-contained apps by default and if it would make sense to provide options to either opt-in or opt-out for some of them.
/cc @richlander