Skip to content

Commit 23cb29c

Browse files
authored
Updates SDK, LangVersion, and enables CPM (#3958)
Updates .NET SDK to 9.0.306, sets C# LangVersion to 13.0, and enables Central Package Management (CPM) with transitive pinning.
1 parent 3c2a7bc commit 23cb29c

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Directory.Build.props

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Copyright>Copyright © 2022</Copyright>
44
<Company>Mulholland Software/James Willock</Company>
55

6-
<LangVersion>12.0</LangVersion>
6+
<LangVersion>13.0</LangVersion>
77
<ErrorReport>prompt</ErrorReport>
88

99
<SignAssembly>true</SignAssembly>
@@ -14,7 +14,6 @@
1414

1515
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
1616
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
17-
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
1817

1918
<!-- Common Package Properties -->
2019
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
@@ -47,4 +46,4 @@
4746
<None Include="$(MSBuildThisFileDirectory)build\MaterialDesign.Icon.png" Pack="true" PackagePath="\" />
4847
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
4948
</ItemGroup>
50-
</Project>
49+
</Project>

Directory.packages.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
<!-- https://learn.microsoft.com/nuget/consume-packages/Central-Package-Management?WT.mc_id=DT-MVP-5003472#transitive-pinning -->
5+
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
6+
</PropertyGroup>
7+
28
<ItemGroup>
39
<PackageVersion Include="BluwolfIcons" Version="1.0.1" />
410
<PackageVersion Include="CommunityToolkit.Mvvm" Version="8.4.0" />

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.300",
3+
"version": "9.0.306",
44
"rollForward": "latestMinor"
55
}
66
}

0 commit comments

Comments
 (0)