Skip to content

Commit

Permalink
add support for sourcelink
Browse files Browse the repository at this point in the history
  • Loading branch information
biplovkc committed Mar 13, 2023
1 parent 5f5cfed commit 4b78db1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Each line is a file pattern followed by one or more owners
# See: https://help.github.com/articles/about-codeowners/

# These owners will be the default owners for everything in the repo
# Unless a later match takes precedence, they will be requested for
# review when someone opens a pull request

* @biplovkc
1 change: 1 addition & 0 deletions .github/workflows/publish-to-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:

- name: Create tag
uses: actions/github-script@v5
if: ${{ always() }}
with:
script: |
github.rest.git.createRef({
Expand Down
12 changes: 0 additions & 12 deletions Directory.Build.props

This file was deleted.

21 changes: 18 additions & 3 deletions src/Biplov.Serilog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<PropertyGroup>
<Authors>Biplov KC</Authors>
<OutputType>Library</OutputType>
<Title>Serilog logging</Title>
<PackageId>Biplov.Serilog</PackageId>
<PackageProjectUrl>https://github.com/biplovkc/event-bus-rabbitmq</PackageProjectUrl>
<PackageTags>Biplov;BiplovKC;Serilog;Logging;</PackageTags>
Expand All @@ -11,17 +12,31 @@
<Description>Registers serilog with custom correlationid middleware and httpcontext extensions</Description>
<LangVersion>latest</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<DebugSymbols>true</DebugSymbols>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>

<!-- Embed source files that are not tracked by the source control manager in the PDB -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<!-- Recommended: Embed symbols containing Source Link in the main file (exe/dll) -->
<DebugType>embedded</DebugType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

<PropertyGroup>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<None Include="..\LICENSE" Pack="true" PackagePath=""/>
<None Include="../README.md" Pack="true" PackagePath="."/>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="murmurhash" Version="1.0.3" />
<PackageReference Include="Serilog.AspNetCore" Version="6.1.0" />
<PackageReference Include="Serilog.Enrichers.AssemblyName" Version="1.0.9" />
Expand Down

0 comments on commit 4b78db1

Please sign in to comment.