Changed locks to use the new Lock-type for .net9

This commit is contained in:
DarthAffe committed 2025-02-08 12:08:12 +01:00
1 parent 47770c00b8
commit 5633f82b3b
41 files changed
+128 -19

No files matched your search

@@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using RGB.NET.Core;
using Sanford.Multimedia.Midi;
@@ -18,7 +19,7 @@ public sealed class NovationDeviceProvider : AbstractRGBDeviceProvider
#region Properties & Fields
// ReSharper disable once InconsistentNaming
private static readonly object _lock = new();
private static readonly Lock _lock = new();
private static NovationDeviceProvider? _instance;
/// <summary>
@@ -51,6 +51,10 @@
<DefineConstants>RELEASE</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<Using Include="RGB.NET.Core.Compatibility.Net8" />
</ItemGroup>
<ItemGroup>
<Content Include="..\Resources\icon.png" Link="icon.png" Pack="true" PackagePath="\" />
<None Include="README.md" Pack="true" PackagePath="\" />