Skip to content

Commit 5bd9825

Browse files
committed
Centralize NuGet package versions with Directory.Packages.props
Enable ManagePackageVersionsCentrally and move all PackageVersion declarations to Directory.Packages.props. Individual csproj files no longer specify Version on PackageReference elements. Pre-declare System.Text.Json, System.CommandLine, and System.IO.Pipes.AccessControl for upcoming migration phases. Assisted-by: Claude Opus 4.6 Signed-off-by: Tyrie Vella <tyvella@microsoft.com>
1 parent 31312ad commit 5bd9825

18 files changed

Lines changed: 95 additions & 40 deletions

File tree

Directory.Packages.props

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<Project>
2+
3+
<PropertyGroup>
4+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
5+
</PropertyGroup>
6+
7+
<ItemGroup>
8+
<!-- CLI -->
9+
<PackageVersion Include="CommandLineParser" Version="2.6.0" />
10+
11+
<!-- Serialization -->
12+
<PackageVersion Include="Newtonsoft.Json" Version="13.0.1" />
13+
14+
<!-- Storage -->
15+
<PackageVersion Include="ManagedEsent" Version="1.9.4" />
16+
<PackageVersion Include="Microsoft.Data.Sqlite" Version="2.2.4" />
17+
<PackageVersion Include="Microsoft.Database.Collections.Generic" Version="1.9.4" />
18+
<PackageVersion Include="Microsoft.Database.Isam" Version="1.9.4" />
19+
20+
<!-- Compression -->
21+
<PackageVersion Include="SharpZipLib" Version="1.3.3" />
22+
23+
<!-- Git -->
24+
<PackageVersion Include="LibGit2Sharp.NativeBinaries" Version="2.0.322" />
25+
26+
<!-- ProjFS -->
27+
<PackageVersion Include="GVFS.ProjFS" Version="2019.411.1" />
28+
<PackageVersion Include="Microsoft.Windows.ProjFS" Version="1.1.19156.1" />
29+
30+
<!-- Windows -->
31+
<PackageVersion Include="Microsoft.Windows.SDK.Contracts" Version="10.0.17134.1000-preview" />
32+
<PackageVersion Include="System.ServiceProcess.ServiceController" Version="4.5.0" />
33+
34+
<!-- Build / packaging -->
35+
<PackageVersion Include="GVFS.VCRuntime" Version="0.2.0-build" />
36+
<PackageVersion Include="MicroBuild.Core" Version="0.2.0" />
37+
<PackageVersion Include="Microsoft.Build.Framework" Version="16.0.461" />
38+
<PackageVersion Include="Microsoft.Build.Utilities.Core" Version="16.0.461" />
39+
<PackageVersion Include="Tools.InnoSetup" Version="6.4.3" />
40+
41+
<!-- Testing -->
42+
<PackageVersion Include="Moq" Version="4.10.1" />
43+
<PackageVersion Include="NUnit3TestAdapter" Version="3.13.0" />
44+
<PackageVersion Include="NUnitLite" Version="3.12.0" />
45+
46+
<!--
47+
Future packages: pre-declared for Phase 2+ branches to avoid
48+
merge conflicts on this file. Not yet referenced by any project.
49+
-->
50+
<PackageVersion Include="System.CommandLine" Version="2.0.3" />
51+
<PackageVersion Include="System.IO.Pipes.AccessControl" Version="8.0.0" />
52+
<PackageVersion Include="System.Text.Json" Version="8.0.5" />
53+
</ItemGroup>
54+
55+
</Project>

GVFS/FastFetch/FastFetch.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="CommandLineParser" Version="2.6.0" />
16-
<PackageReference Include="MicroBuild.Core" Version="0.2.0" ExcludeAssets="none" />
15+
<PackageReference Include="CommandLineParser" />
16+
<PackageReference Include="MicroBuild.Core" ExcludeAssets="none" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

GVFS/GVFS.Common/GVFS.Common.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="2.0.322" />
10-
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.2.4" />
11-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
12-
<PackageReference Include="SharpZipLib" Version="1.3.3" />
9+
<PackageReference Include="LibGit2Sharp.NativeBinaries" />
10+
<PackageReference Include="Microsoft.Data.Sqlite" />
11+
<PackageReference Include="Newtonsoft.Json" />
12+
<PackageReference Include="SharpZipLib" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

GVFS/GVFS.FunctionalTests.LockHolder/GVFS.FunctionalTests.LockHolder.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="CommandLineParser" Version="2.6.0" />
9+
<PackageReference Include="CommandLineParser" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

GVFS/GVFS.FunctionalTests/GVFS.FunctionalTests.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="NUnitLite" Version="3.12.0" />
10-
<PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
11-
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.2.4" />
12-
<PackageReference Include="Microsoft.Database.Collections.Generic" Version="1.9.4" />
13-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
14-
<PackageReference Include="SharpZipLib" Version="1.3.3" />
15-
<PackageReference Include="System.ServiceProcess.ServiceController" Version="4.5.0" />
9+
<PackageReference Include="NUnitLite" />
10+
<PackageReference Include="NUnit3TestAdapter" />
11+
<PackageReference Include="Microsoft.Data.Sqlite" />
12+
<PackageReference Include="Microsoft.Database.Collections.Generic" />
13+
<PackageReference Include="Newtonsoft.Json" />
14+
<PackageReference Include="SharpZipLib" />
15+
<PackageReference Include="System.ServiceProcess.ServiceController" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

GVFS/GVFS.GVFlt/GVFS.GVFlt.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
8+
<PackageReference Include="Newtonsoft.Json" />
99
</ItemGroup>
1010

1111
</Project>

GVFS/GVFS.Hooks/GVFS.Hooks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="LibGit2Sharp.NativeBinaries" Version="2.0.322" />
10+
<PackageReference Include="LibGit2Sharp.NativeBinaries" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

GVFS/GVFS.Installers/GVFS.Installers.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
</ItemDefinitionGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Tools.InnoSetup" Version="6.4.3" />
16-
<PackageReference Include="MicroBuild.Core" Version="0.2.0" ExcludeAssets="none" />
15+
<PackageReference Include="Tools.InnoSetup" />
16+
<PackageReference Include="MicroBuild.Core" ExcludeAssets="none" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

GVFS/GVFS.MSBuild/GVFS.MSBuild.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.Build.Framework" Version="16.0.461" PrivateAssets="all" />
10-
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="16.0.461" PrivateAssets="all" />
9+
<PackageReference Include="Microsoft.Build.Framework" PrivateAssets="all" />
10+
<PackageReference Include="Microsoft.Build.Utilities.Core" PrivateAssets="all" />
1111
</ItemGroup>
1212

1313
</Project>

GVFS/GVFS.Mount/GVFS.Mount.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</ItemGroup>
1717

1818
<ItemGroup>
19-
<PackageReference Include="CommandLineParser" Version="2.6.0" />
19+
<PackageReference Include="CommandLineParser" />
2020
</ItemGroup>
2121

2222
</Project>

0 commit comments

Comments
 (0)