-
Notifications
You must be signed in to change notification settings - Fork 46
Add editorconfig+SourceLink+NRT;convert to file-scoped namespaces #61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Directory.Build.props
Outdated
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
<PackageIcon>serilog-extension-nuget.png</PackageIcon> | ||
<RepositoryType>git</RepositoryType> | ||
<DebugType>embedded</DebugType> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will increase DLL size, which will negatively affect downstream consumers who ship apps with PDBs removed for size reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know about size reasoning and saw discussions and arguments of the two dev groups on this topic. Many have come to the fact that the simple debugging out of the box wihout need to jumping over symbol servers looks much more attractive for consumers then savings on a few kilobytes of theirs apps which occupies dozens or even hundreds of megabytes.
The size of the package increases from 61KB (pdb - none) to 99KB (pdb - embedded).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or in terms of output dll: 18 KB vs 10KB for net core and 14KB vs 10KB for .NET targets. Does 4-8 KB make sense in 2024?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all consuming scenarios are equivalent; Blazor and mobile apps often have tighter size requirements. If we did this in all Serilog projects, the additional 80% would feel like waste to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So? Publish symbol package as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't love SNUPKGs either but it seems like that's the option we're left with :-) 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Please see with
Hide whitespaces
option enabled.