Skip to content

Commit

Permalink
Merge pull request #737 from 304NotModified/sourcelink-and-determinis…
Browse files Browse the repository at this point in the history
…tic-build

Support Sourcelink and Deterministic Build
  • Loading branch information
dtchepak authored Oct 7, 2023
2 parents a5b9d4e + b1f0dd6 commit 4beec78
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### vNext

* [NEW] Support for Sourcelink and Deterministic Build (#737)

### 5.1.0 (Sep 2023)

* [DOC] Add clickable headings. Thanks @jheinath! (#729)
Expand Down
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ artifacts:
- path: bin\Release\NSubstitute\*.nupkg
name: NuGet

- path: bin\Release\NSubstitute\*.snupkg
name: NuGet

- path: bin\Release\nsubstitute.github.com
name: website
12 changes: 12 additions & 0 deletions src/NSubstitute/NSubstitute.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<PackageIcon>icon.png</PackageIcon>
<PackageProjectUrl>https://nsubstitute.github.io/</PackageProjectUrl>
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
<RepositoryUrl>https://github.com/nsubstitute/NSubstitute</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -53,4 +55,14 @@
<DefineConstants>$(DefineConstants);SYSTEM_DIAGNOSTICS_CODEANALYSIS_NULLABILITY</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(CI)' == 'True'">
<!--Deterministic Build and Source Link settings -->
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
</Project>

0 comments on commit 4beec78

Please sign in to comment.