Skip to content

Commit

Permalink
Upgrade to .NET 9 (#88)
Browse files Browse the repository at this point in the history
* Update all projects from .NET 8 to 9

* Upgrade all packages to latests

* Remove no-op null check

* Update Rider files

* Update GitHub Actions build-and-test workflow to use .NET 9
  • Loading branch information
codeconscious authored Nov 30, 2024
1 parent d277523 commit 98c9975
Show file tree
Hide file tree
Showing 8 changed files with 147 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-version: '9.0.x'
- name: Install dependencies
run: dotnet restore src
- name: Build
Expand Down
8 changes: 8 additions & 0 deletions src/.idea/.idea.AudioTagger/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/.idea/.idea.AudioTagger/.idea/projectSettingsUpdater.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

114 changes: 114 additions & 0 deletions src/.idea/.idea.AudioTagger/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/AudioTagger.Console/AudioTagger.Console.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>Audiotagger.Console</AssemblyName>
Expand All @@ -19,13 +19,13 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TagLibSharp" Version="2.3.0"/>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0"/>
<PackageReference Include="System.Drawing.Common" Version="7.0.0"/>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.3"/>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="9.0.0" />
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="6.0.5.128"/>
<PackageReference Include="Spectre.Console" Version="0.45.0"/>
<PackageReference Include="FluentResults" Version="3.15.2"/>
<PackageReference Include="CodeConscious.Startwatch" Version="0.0.2"/>
<PackageReference Include="Spectre.Console" Version="0.49.1" />
<PackageReference Include="FluentResults" Version="3.16.0" />
<PackageReference Include="CodeConscious.Startwatch" Version="0.0.3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AudioTagger.Library\AudioTagger.Library.csproj"/>
Expand Down
2 changes: 0 additions & 2 deletions src/AudioTagger.Console/Operations/TagUpdaterMultiple.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public void Start(IReadOnlyCollection<MediaFile> mediaFiles,

foreach ((MediaFile File, string NewTitle) pair in updateSet)
{
ArgumentNullException.ThrowIfNull(pair);

try
{
UpdateTags(pair.File, tagName, pair.NewTitle, updateType);
Expand Down
10 changes: 5 additions & 5 deletions src/AudioTagger.Library/AudioTagger.Library.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="TagLibSharp" Version="2.3.0"/>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0"/>
<PackageReference Include="System.Drawing.Common" Version="7.0.0"/>
<PackageReference Include="Microsoft.Windows.Compatibility" Version="7.0.3"/>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="9.0.0" />
<PackageReference Include="System.Drawing.Common" Version="9.0.0" />
<PackageReference Include="Microsoft.Windows.Compatibility" Version="9.0.0" />
<PackageReference Include="runtime.osx.10.10-x64.CoreCompat.System.Drawing" Version="6.0.5.128"/>
<PackageReference Include="FluentResults" Version="3.15.2"/>
<PackageReference Include="FluentResults" Version="3.16.0" />
</ItemGroup>
</Project>
13 changes: 5 additions & 8 deletions src/AudioTagger.Tests/AudioTagger.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AudioTagger.Library\AudioTagger.Library.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 98c9975

Please sign in to comment.