From 6a3f1f816b57cbdd3923f0c71351a572c061aaf8 Mon Sep 17 00:00:00 2001 From: jose_morato Date: Wed, 18 Dec 2024 13:18:55 +0100 Subject: [PATCH] Use NET8_0_OR_GREATER for LibraryImport --- Native/CSharpCDRImplTemplate.txt | 4 ++-- Tests/OpenDDSharp.UnitTest/OpenDDSharp.UnitTest.csproj | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Native/CSharpCDRImplTemplate.txt b/Native/CSharpCDRImplTemplate.txt index 35e0462e..42d8163b 100644 --- a/Native/CSharpCDRImplTemplate.txt +++ b/Native/CSharpCDRImplTemplate.txt @@ -71,7 +71,7 @@ [SuppressUnmanagedCodeSecurity] internal static partial class <%TYPE%>TypeSupportNative { -#if NET7_0_OR_GREATER +#if NET8_0_OR_GREATER [SuppressUnmanagedCodeSecurity] [LibraryImport(<%TYPE%>.API_DLL, EntryPoint = "<%SCOPED_METHOD%>TypeSupport_new", StringMarshalling = StringMarshalling.Utf8)] [UnmanagedCallConv(CallConvs = new[] { typeof(System.Runtime.CompilerServices.CallConvSuppressGCTransition) })] @@ -1213,7 +1213,7 @@ internal static partial class <%TYPE%>DataReaderNative { -#if NET7_0_OR_GREATER +#if NET8_0_OR_GREATER [SuppressUnmanagedCodeSecurity] [LibraryImport(<%TYPE%>.API_DLL, EntryPoint = "<%SCOPED_METHOD%>DataReader_Narrow")] [UnmanagedCallConv(CallConvs = new[] { typeof(System.Runtime.CompilerServices.CallConvCdecl) })] diff --git a/Tests/OpenDDSharp.UnitTest/OpenDDSharp.UnitTest.csproj b/Tests/OpenDDSharp.UnitTest/OpenDDSharp.UnitTest.csproj index eb2bbdf0..a41cf7c9 100644 --- a/Tests/OpenDDSharp.UnitTest/OpenDDSharp.UnitTest.csproj +++ b/Tests/OpenDDSharp.UnitTest/OpenDDSharp.UnitTest.csproj @@ -13,7 +13,7 @@ true true OpenDDSharp.UnitTest - net7.0;net8.0; + net462;net47;net471;net472;net48;net6.0;net7.0;net8.0; net6.0;net7.0;net8.0;