Skip to content

Commit

Permalink
Update SDK, nuget, enabled central package management
Browse files Browse the repository at this point in the history
  • Loading branch information
deqenq committed Oct 27, 2024
1 parent 0b65189 commit a99457c
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"isRoot": true,
"tools": {
"cake.tool": {
"version": "4.0.0",
"version": "4.2.0",
"commands": [
"dotnet-cake"
]
}
}
}
}
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.301",
"version": "8.0.403",
"rollForward": "latestFeature"
}
}
2 changes: 1 addition & 1 deletion src/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ indent_style = space
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom
charset = utf-8
###############################
# .NET Coding Conventions #
###############################
Expand Down
29 changes: 8 additions & 21 deletions src/Cake.Wget.Tests/Cake.Wget.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,17 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="4.0.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Cake.Testing" Version="4.0.0">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="XUnit" Version="2.8.1" />
<PackageReference Include="XUnit.runner.visualstudio" Version="2.8.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Cake.Core" />
<PackageReference Include="Cake.Testing" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="XUnit" />
<PackageReference Include="XUnit.runner.visualstudio" />
<PackageReference Include="StyleCop.Analyzers" />
<PackageReference Include="coverlet.msbuild" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Cake.Wget\Cake.Wget.csproj" />
<ProjectReference Include="../Cake.Wget/Cake.Wget.csproj" />
</ItemGroup>

<PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions src/Cake.Wget.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7E7514AC-8513-4E2C-B5F5-FF17A4CD066B}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Directory.Packages.props = Directory.Packages.props
EndProjectSection
EndProject
Global
Expand Down
9 changes: 2 additions & 7 deletions src/Cake.Wget/Cake.Wget.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Cake.Core" Version="4.0.0">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Cake.Core" />
<PackageReference Include="StyleCop.Analyzers" />
</ItemGroup>

<PropertyGroup>
Expand Down
14 changes: 14 additions & 0 deletions src/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Cake.Core" Version="4.2.0" />
<PackageVersion Include="Cake.Testing" Version="4.2.0" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.507" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="XUnit" Version="2.9.2" />
<PackageVersion Include="XUnit.runner.visualstudio" Version="2.8.2" />
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
</ItemGroup>
</Project>

0 comments on commit a99457c

Please sign in to comment.