Open vitek-karas opened 2 years ago
See https://github.com/dotnet/runtime/issues/43716 for an example of customer report on this.
This sounds reasonable, but we'd need a more concrete proposal from the owners of these files - are there logical groups that would be turned off as a whole, for example?
Do I understand that createdump.exe will be signed and packaged with apps by default? This could be a significant security concern.
Does this issue cover the inclusion of unmanaged WPF DLLs in an app that uses Windows Forms but not WPF?
Do I understand that createdump.exe will be signed and packaged with apps by default? This could be a significant security concern.
@tommcdon could you please comment on this?
Does this issue cover the inclusion of unmanaged WPF DLLs in an app that uses Windows Forms but not WPF?
Probably the better place for this discussions is https://github.com/dotnet/winforms/issues/3723
It's not part of this issue - this issue is about files which are included because some features of the runtime or developer experience make use of them. Mostly there's no way to tell if they are needed by just looking at the code of the app (this is sort of not true for msquic but it depends on the scenario).
Inclusion of WPF dlls in winform apps is mainly a problem for trimming which would require two things:
There's one more option - omit WPF dlls (even the managed ones) if UseWPF
is not set. I don't know enough about the WPF SDK integration to tell if this can be breaking for some apps which use WPF classes without UseWPF
today.
yes
I am getting the crashdump
executable, even for a normal publish (i.e. not self-contained), on linux.
env: .net7, docker, linux
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