diff --git a/LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj b/LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
index ca1ccd50..777cbe0f 100644
--- a/LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
+++ b/LibZipSharp.UnitTest/LibZipSharp.UnitTest.csproj
@@ -3,7 +3,7 @@
- net471;net7.0;netcoreapp3.1
+ net471;$(_DotNetTargetFramework);netcoreapp3.1
false
true
diff --git a/LibZipSharp.props b/LibZipSharp.props
index 623188dc..84fd6c40 100644
--- a/LibZipSharp.props
+++ b/LibZipSharp.props
@@ -6,6 +6,7 @@
<_LibZipSharpAssemblyVersion>$(_LibZipSharpAssemblyVersionMajor).$(_LibZipSharpAssemblyVersionMinor).$(_LibZipSharpAssemblyVersionPatch)
<_NativeLibraryVersionForName>$(_LibZipSharpAssemblyVersionMajor)-$(_LibZipSharpAssemblyVersionMinor)
<_NativeLibraryBaseName>libZipSharpNative-$(_NativeLibraryVersionForName)
+ <_DotNetTargetFramework>net7.0