Skip to content

Commit

Permalink
Support .NET 9
Browse files Browse the repository at this point in the history
  • Loading branch information
melanchall committed Nov 20, 2024
1 parent e6b5243 commit d7b907f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net48;net8.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net48;net9.0</TargetFrameworks>
<OutputType>Library</OutputType>
<Configurations>Debug;Release;Coverage;DebugTest;ReleaseTest</Configurations>
<SignAssembly>true</SignAssembly>
Expand Down
2 changes: 1 addition & 1 deletion DryWetMidi.Tests/Melanchall.DryWetMidi.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp3.1;net48;net8.0</TargetFrameworks>
<TargetFrameworks>netcoreapp3.1;net48;net9.0</TargetFrameworks>
<OutputType>Library</OutputType>
<Configurations>Debug;Release;Coverage;DebugTest;ReleaseTest</Configurations>
<SignAssembly>true</SignAssembly>
Expand Down
2 changes: 1 addition & 1 deletion DryWetMidi/Composing/Actions/AddChannelEventAction.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Melanchall.DryWetMidi.Core;
using Melanchall.DryWetMidi.Interaction;

namespace Melanchall.DryWetMidi.Composing.Actions
namespace Melanchall.DryWetMidi.Composing
{
internal abstract class AddChannelEventAction<TEvent> : PatternAction
where TEvent : ChannelEvent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Melanchall.DryWetMidi.Common;
using Melanchall.DryWetMidi.Composing.Actions;
using Melanchall.DryWetMidi.Core;

namespace Melanchall.DryWetMidi.Composing
Expand Down
3 changes: 1 addition & 2 deletions DryWetMidi/Composing/Actions/AddPitchBendEventAction.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Melanchall.DryWetMidi.Composing.Actions;
using Melanchall.DryWetMidi.Core;
using Melanchall.DryWetMidi.Core;

namespace Melanchall.DryWetMidi.Composing
{
Expand Down
4 changes: 2 additions & 2 deletions Resources/CI/test-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ stages:
inputs:
command: 'test'
projects: 'DryWetMidi.Tests/Melanchall.DryWetMidi.Tests.csproj'
arguments: '--blame --no-build --configuration $(TestBuildConfiguration) --filter (FullyQualifiedName~Melanchall.DryWetMidi.Tests.Core|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Common|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Composing|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Interaction|FullyQualifiedName~Melanchall.DryWetMidi.Tests.MusicTheory|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Standards|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Tools) --framework $(Tfm) --verbosity normal --diag diagnostic.log --logger "console;verbosity=normal"'
arguments: '--blame --no-build --configuration $(TestBuildConfiguration) --filter (FullyQualifiedName~Melanchall.DryWetMidi.Tests.Core|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Common|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Composing|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Interaction|FullyQualifiedName~Melanchall.DryWetMidi.Tests.MusicTheory|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Standards|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Tools|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Utilities) --framework $(Tfm) --verbosity normal --diag diagnostic.log --logger "console;verbosity=normal"'

- task: DotNetCoreCLI@2
displayName: Run unit tests (non-Windows)
condition: eq(variables.VmImage, 'macos-latest')
inputs:
command: 'test'
projects: 'DryWetMidi.Tests/Melanchall.DryWetMidi.Tests.csproj'
arguments: '--blame --no-build --configuration $(TestBuildConfiguration) --filter ((FullyQualifiedName~Melanchall.DryWetMidi.Tests.Core|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Common|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Composing|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Interaction|FullyQualifiedName~Melanchall.DryWetMidi.Tests.MusicTheory|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Standards|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Tools)&Name!=CheckValidFilesReadingByReferences) --framework $(Tfm) --verbosity normal --diag diagnostic.log --logger "console;verbosity=normal"'
arguments: '--blame --no-build --configuration $(TestBuildConfiguration) --filter ((FullyQualifiedName~Melanchall.DryWetMidi.Tests.Core|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Common|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Composing|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Interaction|FullyQualifiedName~Melanchall.DryWetMidi.Tests.MusicTheory|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Standards|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Tools|FullyQualifiedName~Melanchall.DryWetMidi.Tests.Utilities)&Name!=CheckValidFilesReadingByReferences) --framework $(Tfm) --verbosity normal --diag diagnostic.log --logger "console;verbosity=normal"'

- template: Templates/step-collect-logs.yaml
2 changes: 1 addition & 1 deletion Utilities/Common/Melanchall.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<RuntimeIdentifiers>win-x64;osx-x64</RuntimeIdentifiers>
Expand Down
2 changes: 1 addition & 1 deletion Utilities/SendMidiData/Melanchall.SendMidiData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<PublishSingleFile>true</PublishSingleFile>
<PublishTrimmed>true</PublishTrimmed>
<RuntimeIdentifiers>win-x64;osx-x64</RuntimeIdentifiers>
Expand Down

0 comments on commit d7b907f

Please sign in to comment.