Open myblindy opened 2 years ago
Removing the websdk tag since this is not related to web or the Visual Studio publish. The same can be reproduced with dotnet publish.
Adding @LakshanF to see if this is something you can help with.
Removing the websdk tag
Yeah, I was a bit surprised at that auto tag as well.
Moving to WPF as I assume they control which files get published during the build.
FWIW, I’ve been running into this issue for a long time now coming from the other direction (pure Windows Forms app, still deploys completely unused WPF runtime libraries). I think it has something to do with runtime packs. Hope this helps!
Describe the bug
As the title is, a plain WPF application seems to somehow publish the Windows Forms dlls, including the design time ones, which are both very large and (presumably) not necessary.
To Reproduce
Exceptions (if any)
N/A
Further technical details
dotnet --info
Visual Studio 2022 Version 17.2.0 Preview 4.0, but this has been an issue for a long while, on both .Net 6 and 7 (haven't tried before that).