Skip to content

Commit

Permalink
feat: Add SourceLink and push symbols to NuGet.org (#825)
Browse files Browse the repository at this point in the history
Co-authored-by: RomainHautefeuille: #806

Create and publish symbol packages (.snupkg) with Source Link.
Source Link documentation:
https://devblogs.microsoft.com/dotnet/producing-packages-with-source-link/
https://github.com/dotnet/sourcelink

ContinuousIntegrationBuild is set during CI to avoid linking to paths
from build vm, but not when built manually where local paths are relevant.
  • Loading branch information
sbellone committed Nov 8, 2022
1 parent b23df82 commit bd35dd6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Algolia.Search/Algolia.Search.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,15 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<TargetFrameworks>netstandard2.1;netstandard2.0;netstandard1.3</TargetFrameworks>
<LangVersion>7.3</LangVersion>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<None Include="images\icon.png" Pack="true" PackagePath="\" />
</ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup Condition="'$(CI)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>

0 comments on commit bd35dd6

Please sign in to comment.