Skip to content

Commit 8a0c4a6

Browse files
authored
chore: Add packages.lock.json for reproducible .NET builds (#232)
* chore: Update package references and centralize version management * chore: Update .prettierignore to include packages.lock.json
1 parent 387858f commit 8a0c4a6

File tree

8 files changed

+964
-7
lines changed

8 files changed

+964
-7
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
package.json
2-
package-lock.json
2+
package-lock.json
3+
packages.lock.json

Directory.Build.props

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@
3838
</PropertyGroup>
3939

4040
<ItemGroup>
41-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
41+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="All"/>
4242
</ItemGroup>
4343

44-
<!-- Code Analysis -->
45-
<ItemGroup>
46-
<PackageReference Include="Roslynator.Analyzers" Version="4.13.1" PrivateAssets="All" />
47-
<PackageReference Include="Roslynator.CodeFixes" Version="4.13.1" PrivateAssets="All" />
44+
<ItemGroup Label="Roslynator">
45+
<PackageReference Include="Roslynator.Analyzers" PrivateAssets="All" />
46+
<PackageReference Include="Roslynator.CodeFixes" PrivateAssets="All" />
4847
</ItemGroup>
4948
</Project>

Directory.Packages.props

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
5+
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
6+
</PropertyGroup>
7+
<ItemGroup Label="Microsoft">
8+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
9+
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="9.0.2" />
10+
</ItemGroup>
11+
<ItemGroup Label="Roslynator">
12+
<PackageVersion Include="Roslynator.Analyzers" Version="4.13.1" />
13+
<PackageVersion Include="Roslynator.CodeFixes" Version="4.13.1" />
14+
</ItemGroup>
15+
</Project>

0 commit comments

Comments
 (0)