fix: Remove usage of DebuggerSupport
and TrimmerRemoveSymbols
on release build
#1530
Milestone
DebuggerSupport
and TrimmerRemoveSymbols
on release build
#1530
Arguably a bug report but using
TrimmerRemoveSymbols
makes it harder to debug things in release builds.The default behavior should already include smaller symbols. By default .NET splits them (dll/exe + pdb only for symbols). With Portable PDBs they are already quite small. And can be published on
snupkg
packages and published to nuget.org. Debugger and other tools (such as sentry.io) can fetch the symbols from prod stack traces to add line numbers and file paths, as well as use source link to link to the original source code and fetch surrounding lines of code on stack traces. Source link info lives in the PDB.So instead of removing symbols we can leave the default behavior, and publish a snupkg making the nupkg itself smaller while bugs easier to resolve.
Finally, using
DebuggerSupport=false
makesTrimmerRemoveSymbols
redundant so we'd need to remove both ones:fluentui-blazor/src/Core/Microsoft.FluentUI.AspNetCore.Components.csproj
Lines 40 to 41 in 3b5c943
I'm happy to make the changes if we agree on this
The text was updated successfully, but these errors were encountered: