Skip to content

Commit 7bc237b

Browse files
committed
Reduce target framework matrix to netstandard2.0;net47;net10.0
Drops 8 EOL or redundant TFMs (netcoreapp3.0, netcoreapp3.1, net5.0, net6.0, net7.0, net8.0, net471, net472, net48, net481). Coverage is preserved: netstandard2.0 covers all modern .NET (5+), net47 keeps the SetDllDirectory bootstrap available for .NET Framework consumers, and net10.0 is the current LTS modern-.NET target. Broadens #if NET472_OR_GREATER to #if NETFRAMEWORK in NativeMethods.cs so the SetDllDirectory bootstrap compiles into the net47 build (previously the gate was narrower than the TFM list).
1 parent 4fd3a5e commit 7bc237b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/libplctag.NativeImport/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static class NativeMethods
2020

2121
static NativeMethods()
2222
{
23-
#if NET472_OR_GREATER
23+
#if NETFRAMEWORK
2424
// Assume we're running on Windows because .NET Framework is not supported on other platforms
2525
string executingDirectory = System.IO.Path.GetDirectoryName(typeof(NativeMethods).Assembly.Location);
2626
string system = Environment.Is64BitProcess ? "X64" : "X86";

src/libplctag.NativeImport/libplctag.NativeImport.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.0;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net47;net471;net472;net48;net481</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net47;net10.0</TargetFrameworks>
55
<AssemblyName>libplctag.NativeImport</AssemblyName>
66
<RootNamespace>libplctag.NativeImport</RootNamespace>
77
<PackageId>libplctag.NativeImport</PackageId>

src/libplctag/libplctag.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp3.0;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net47;net471;net472;net48;net481</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net47;net10.0</TargetFrameworks>
55
<AssemblyName>libplctag</AssemblyName>
66
<RootNamespace>libplctag</RootNamespace>
77
<PackageId>libplctag</PackageId>

0 commit comments

Comments
 (0)