Skip to content

Commit

Permalink
Introduce ManagePackageVersionsCentrally
Browse files Browse the repository at this point in the history
  • Loading branch information
jbe2277 committed Oct 19, 2024
1 parent 9275497 commit f823a1f
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/MusicManager/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<RunSettingsFilePath>$(MSBuildThisFileDirectory)CodeCoverage.runsettings</RunSettingsFilePath>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.4.3" />
<PackageReference Include="MSTest.TestFramework" Version="3.4.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="MSTest.TestAdapter" />
<PackageReference Include="MSTest.TestFramework" />
</ItemGroup>
</When>
<Otherwise>
Expand Down
17 changes: 17 additions & 0 deletions src/MusicManager/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.3233" />
<PackageVersion Include="NLog" Version="5.3.2" />
<PackageVersion Include="System.Waf.Core" Version="8.0.1" />
<PackageVersion Include="System.Waf.Wpf" Version="8.0.1" />
<!-- Unit tests -->
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.1" />
<PackageVersion Include="MSTest.TestFramework" Version="3.6.1" />
<PackageVersion Include="System.Waf.UnitTesting.Core" Version="8.0.1" />
<PackageVersion Include="System.Waf.UnitTesting.Wpf" Version="8.0.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Waf.UnitTesting.Wpf" Version="8.0.1" />
<PackageReference Include="System.Waf.UnitTesting.Wpf" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Waf.Wpf" Version="8.0.1" />
<PackageReference Include="System.Waf.Wpf" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Waf.UnitTesting.Core" Version="8.0.1" />
<PackageReference Include="System.Waf.UnitTesting.Core" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Waf.Core" Version="8.0.1" />
<PackageReference Include="NLog" Version="5.3.2" />
<PackageReference Include="System.Waf.Core" />
<PackageReference Include="NLog" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
</ItemGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.3233" PrivateAssets="all" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MusicManager.Presentation\MusicManager.Presentation.csproj" />
Expand Down
1 change: 1 addition & 0 deletions src/MusicManager/MusicManager.sln
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Changelog.txt = Changelog.txt
CodeCoverage.runsettings = CodeCoverage.runsettings
Directory.Build.props = Directory.Build.props
Directory.Packages.props = Directory.Packages.props
EndProjectSection
EndProject
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "MusicManager.Packaging", "MusicManager.Packaging\MusicManager.Packaging.wapproj", "{FECFE8DC-D326-429F-8B55-23F0C49A9E18}"
Expand Down

0 comments on commit f823a1f

Please sign in to comment.