From e6fa1c6f34aa0c47a72e2aa7f0c637d1d7a608f5 Mon Sep 17 00:00:00 2001 From: Neo Samardzic <110126965+samardzicneo@users.noreply.github.com> Date: Thu, 7 Mar 2024 21:08:14 +0100 Subject: [PATCH] this will fix it --- src/NodeApi/Runtime/NodejsPlatform.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 =