diff --git a/src/NodeApi/Runtime/NodejsPlatform.cs b/src/NodeApi/Runtime/NodejsPlatform.cs index 154f1be3..e32bbe33 100644 --- a/src/NodeApi/Runtime/NodejsPlatform.cs +++ b/src/NodeApi/Runtime/NodejsPlatform.cs @@ -4,7 +4,7 @@ using System; using System.Runtime.InteropServices; -#if NETCOREAPP3_0_OR_GREATER +#if NET7_0_OR_GREATER using System.Reflection; #endif @@ -48,7 +48,7 @@ public NodejsPlatform( "Only one Node.js platform instance per process is allowed."); } -#if NETCOREAPP3_0_OR_GREATER +#if NET7_0_OR_GREATER var entryAssembly = Assembly.GetEntryAssembly(); nint libnodeHandle =