Application fails to run if PublishTrimmed=True
See original GitHub issueMinimal reproduction: https://github.com/nulastudio/NetCoreBeauty/issues/10#issuecomment-671730525 with latest NetCoreBeauty version and PublishTrimmed set to true.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Running ASP.NET Core application with PublishTrimmed ...
When PublishTrimmed=true is set, Startup Hooks are disabled, which means the assembly isn't already loaded. And trying to load the assembly ...
Read more >c# - netcoreapp3.0 console application publish fails with ...
Everything works fine without <PublishTrimmed>true</PublishTrimmed> . The error message below doesn't offer any insights :( error:
Read more >Trim self-contained applications - .NET
This property will produce a trimmed app on self-contained publish. It also turns off trim-incompatible features and shows trim compatibility ...
Read more >Trimming options - .NET
Learn how to control trimming of self-contained apps. ... Trimming with PublishTrimmed was introduced in .NET Core 3.0.
Read more >Too many dlls when publishing dotnet
I mostly just use --self-contained -p:PublishSingleFile=True -p:PublishTrimmed=True -p:TrimMode=CopyUsed -p:PublishReadyToRun=True because it's ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

see this comment, https://github.com/dotnet/sdk/issues/14261#issuecomment-734446135
see dotnet/sdk#14261