question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application fails to run if PublishTrimmed=True

See original GitHub issue

Minimal reproduction: https://github.com/nulastudio/NetCoreBeauty/issues/10#issuecomment-671730525 with latest NetCoreBeauty version and PublishTrimmed set to true.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
liesauercommented, Jan 1, 2021
1reaction
liesauercommented, Dec 24, 2020

see dotnet/sdk#14261

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found