Skip to content

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

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

sungam3r
Copy link
Contributor

@sungam3r sungam3r commented Feb 5, 2024

Please see with Hide whitespaces option enabled.

@sungam3r sungam3r changed the title Add editorconfig+SourceLink;convert to file-scoped namespaces Add editorconfig+SourceLink+NRT;convert to file-scoped namespaces Feb 5, 2024
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageIcon>serilog-extension-nuget.png</PackageIcon>
<RepositoryType>git</RepositoryType>
<DebugType>embedded</DebugType>
Copy link
Member

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.

Copy link
Contributor Author

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).

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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 :-) 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@sungam3r
Copy link
Contributor Author

@nblumhardt ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants