Skip to content

Commit 4beec78

Browse files
authored
Merge pull request #737 from 304NotModified/sourcelink-and-deterministic-build
Support Sourcelink and Deterministic Build
2 parents a5b9d4e + b1f0dd6 commit 4beec78

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### vNext
2+
3+
* [NEW] Support for Sourcelink and Deterministic Build (#737)
4+
15
### 5.1.0 (Sep 2023)
26

37
* [DOC] Add clickable headings. Thanks @jheinath! (#729)

appveyor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@ artifacts:
1818
- path: bin\Release\NSubstitute\*.nupkg
1919
name: NuGet
2020

21+
- path: bin\Release\NSubstitute\*.snupkg
22+
name: NuGet
23+
2124
- path: bin\Release\nsubstitute.github.com
2225
name: website

src/NSubstitute/NSubstitute.csproj

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<PackageIcon>icon.png</PackageIcon>
1111
<PackageProjectUrl>https://nsubstitute.github.io/</PackageProjectUrl>
1212
<PackageLicenseExpression>BSD-3-Clause</PackageLicenseExpression>
13+
<RepositoryUrl>https://github.com/nsubstitute/NSubstitute</RepositoryUrl>
14+
<RepositoryType>git</RepositoryType>
1315
</PropertyGroup>
1416

1517
<ItemGroup>
@@ -53,4 +55,14 @@
5355
<DefineConstants>$(DefineConstants);SYSTEM_DIAGNOSTICS_CODEANALYSIS_NULLABILITY</DefineConstants>
5456
</PropertyGroup>
5557

58+
<PropertyGroup Condition="'$(CI)' == 'True'">
59+
<!--Deterministic Build and Source Link settings -->
60+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
61+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
62+
<IncludeSymbols>true</IncludeSymbols>
63+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
64+
</PropertyGroup>
65+
<ItemGroup>
66+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
67+
</ItemGroup>
5668
</Project>

0 commit comments

Comments
 (0)