diff --git a/Backport.System.Threading.Lock/Backport.System.Threading.Lock.csproj b/Backport.System.Threading.Lock/Backport.System.Threading.Lock.csproj
index 66ac044..d28acb5 100644
--- a/Backport.System.Threading.Lock/Backport.System.Threading.Lock.csproj
+++ b/Backport.System.Threading.Lock/Backport.System.Threading.Lock.csproj
@@ -7,7 +7,7 @@
https://github.com/MarkCiliaVincenti/Backport.System.Threading.Lock
MIT
MIT
- 2.0.0
+ 2.0.1
logo.png
Breaking change that requires different usage for projects targeting frameworks prior to .NET 5.0 in order to cater for potential thread aborts.
A micro-library that backports .NET 9.0+'s System.Threading.Lock to prior framework versions (from .NET Framework 3.5 up to .NET 8.0), providing as much backward compatibility as possible.
@@ -15,8 +15,8 @@
System.Threading.Lock,lock,backport,backward,compatible,compatibility,synchronization,synchronisation
git
false
- 2.0.0.0
- 2.0.0.0
+ 2.0.1.0
+ 2.0.1.0
README.md
true
True
diff --git a/Backport.System.Threading.Lock/PreNet5Lock.cs b/Backport.System.Threading.Lock/PreNet5Lock.cs
index ab9581c..d5564f1 100644
--- a/Backport.System.Threading.Lock/PreNet5Lock.cs
+++ b/Backport.System.Threading.Lock/PreNet5Lock.cs
@@ -1,10 +1,6 @@
-#if !NET9_0_OR_GREATER
-using System;
+using System;
using System.Runtime.CompilerServices;
using System.Threading;
-#if NET9_0_OR_GREATER
-[assembly: TypeForwardedTo(typeof(System.Threading.Lock))]
-#endif
namespace Backport.System.Threading;
///
/// A backport of .NET 9.0+'s System.Threading.Lock. Provides a way to get mutual exclusion in regions of code between different threads.
@@ -150,5 +146,4 @@ public ref struct Scope(Lock @lock)
#endif
public readonly void Dispose() => @lock.Exit();
}
-}
-#endif
\ No newline at end of file
+}
\ No newline at end of file