Skip to content
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

Add sourcelink to nuget package #297

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

dakhraui
Copy link

To improve development/debugging experience

@dakhraui
Copy link
Author

related to #203

@nblumhardt
Copy link
Member

Sorry about the long delay reviewing this, I'll aim to get back around to it soon.

@sungam3r
Copy link
Contributor

@nblumhardt Proper SourceLink support would be handy in v3.

@sungam3r
Copy link
Contributor

ping @nblumhardt

Copy link
Member

@nblumhardt nblumhardt left a comment

Choose a reason for hiding this comment

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

Just trivial changes suggested; thanks @dakhraui !

@@ -20,6 +20,14 @@
<RootNamespace>Serilog</RootNamespace>
</PropertyGroup>

<PropertyGroup>
Copy link
Member

Choose a reason for hiding this comment

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

These can go in the long list of properties already present above; we only tend to use property groups when different conditions need to be applied.

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IsPackable>true</IsPackable>
Copy link
Member

Choose a reason for hiding this comment

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

IsPackable already defaults to true so can be removed from this list.

@@ -36,6 +44,10 @@
<PackageReference Include="Serilog.Sinks.Debug" Version="2.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="3.3.0" />
<PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" />
<PackageReference Include="Microsoft.SourceLink.Github" Version="1.1.1">
Copy link
Contributor

Choose a reason for hiding this comment

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

Not needed since NET8.

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.

None yet

3 participants