Skip to content

Commit

Permalink
GH-947 Add support to SourceLink
Browse files Browse the repository at this point in the history
  • Loading branch information
lillo42 committed Mar 3, 2025
1 parent f117e73 commit fe6d06b
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions csharp/rocketmq-client-csharp/rocketmq-client-csharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
<RepositoryUrl>https://github.com/apache/rocketmq-clients</RepositoryUrl>
<PackageIcon>logo.png</PackageIcon>

<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
<!-- This is useful if you generate files during the build -->
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<!-- Recommended: Embed symbols containing Source Link in the main file (exe/dll) -->
<DebugType>embedded</DebugType>
</PropertyGroup>

<ItemGroup>
Expand All @@ -30,6 +35,10 @@
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.4" />
<PackageReference Include="OpenTelemetry" Version="1.3.1" />
<PackageReference Include="OpenTelemetry.Api" Version="1.3.1" />
Expand Down

0 comments on commit fe6d06b

Please sign in to comment.