Skip to content

Commit

Permalink
Update TFM to net8.0 and bump NuGet packages (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
tparviainen committed Nov 19, 2023
1 parent 7d55450 commit 4fe4783
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Build with dotnet
run: dotnet build ./src/ClashOfClans.sln
2 changes: 1 addition & 1 deletion .github/workflows/docfx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
token: ${{ secrets.DOCFX_API_KEY }}
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x"
dotnet-version: "8.0.x"

- name: Build with dotnet
run: dotnet build ./src/ClashOfClans/ClashOfClans.csproj
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x"
dotnet-version: "8.0.x"

- name: Setup NuGet CLI
run: choco install nuget.commandline
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "7.0.x"
dotnet-version: "8.0.x"

- name: Unit Tests
working-directory: src
Expand Down
6 changes: 3 additions & 3 deletions build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

$version = Get-PackageVersion
$packageId = "ClashOfClans"
$basePath = "..\src\ClashOfClans\"
$project = $basePath + $packageId + ".csproj"
$nuspec = $basePath + $packageId + ".nuspec"
$basePath = Join-Path ".." "src" "ClashOfClans"
$project = Join-Path $basePath "$packageId.csproj"
$nuspec = Join-Path $basePath "$packageId.nuspec"
$nupkg = "$packageId.$version.nupkg"
$configuration = "Release"
$commit = Get-CommitHash
Expand Down
2 changes: 1 addition & 1 deletion build/version.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Patch: Backwards compatible bug fixes only
# -Suffix (optional): a hyphen followed by a string denoting a pre-release version (rc1, rc2, etc.)

8.8.1
8.8.2-rc2
4 changes: 2 additions & 2 deletions src/ClashOfClans.App/ClashOfClans.App.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ClashOfClans" Version="8.8.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ClashOfClans.Blazor/ClashOfClans.Blazor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/ClashOfClans.Models/ClashOfClans.Models.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
Expand Down
2 changes: 1 addition & 1 deletion src/ClashOfClans.Tests.Unit/ClashOfClans.Tests.Unit.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
8 changes: 4 additions & 4 deletions src/ClashOfClans/ClashOfClans.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NuspecFile>ClashOfClans.nuspec</NuspecFile>
Expand All @@ -22,9 +22,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
32 changes: 20 additions & 12 deletions src/ClashOfClans/ClashOfClans.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,29 @@
<repository type="git" url="https://github.com/tparviainen/clashofclans" branch="$branch$" commit="$commit$"/>
<dependencies>
<group targetFramework="netstandard2.0">
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="7.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="7.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.1" />
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="8.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="8.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.3" />
</group>
<group targetFramework="netstandard2.1">
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="7.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="7.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.1" />
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="8.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="8.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.3" />
</group>
<group targetFramework="net6.0">
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="7.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="7.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.1" />
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="8.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="8.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.3" />
</group>
<group targetFramework="net7.0">
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="7.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="7.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.1" />
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="8.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="8.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.3" />
</group>
<group targetFramework="net8.0">
<dependency id="Microsoft.Extensions.DependencyInjection.Abstractions" version="8.0.0" />
<dependency id="Microsoft.Extensions.Options.ConfigurationExtensions" version="8.0.0" />
<dependency id="Newtonsoft.Json" version="13.0.3" />
</group>
</dependencies>
</metadata>
Expand All @@ -52,5 +57,8 @@
<file src="bin\Release\net7.0\*.dll" target="lib\net7.0" />
<file src="bin\Release\net7.0\*.pdb" target="lib\net7.0" />
<file src="bin\Release\net7.0\ClashOfClans.xml" target="lib\net7.0" />
<file src="bin\Release\net8.0\*.dll" target="lib\net8.0" />
<file src="bin\Release\net8.0\*.pdb" target="lib\net8.0" />
<file src="bin\Release\net8.0\ClashOfClans.xml" target="lib\net8.0" />
</files>
</package>

0 comments on commit 4fe4783

Please sign in to comment.