diff --git a/README.md b/README.md index e9050568..79048872 100644 --- a/README.md +++ b/README.md @@ -74,4 +74,4 @@ for (int i = 0; i < mgr.PropertySet0.NumProperties; i++) ... ``` -OpenMcdf runs happily on the [Mono](http://www.mono-project.com/) platform and supports now **.NET 6** +OpenMcdf runs happily on the [Mono](http://www.mono-project.com/) platform and targets **netstandard 2.0** to allow maximum client compatibility AND .net framework 4 for legacy implementations. diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 216f959f..9da54dce 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,7 +11,7 @@ pool: variables: buildConfiguration: 'Release' - libFramework: 'net6.0' + libFramework: 'netstandard2.0' appFramework: 'net6.0' # pay attention to slashes testsProject: 'sources/Test/OpenMcdf.Test/OpenMcdf.Test.csproj' diff --git a/sources/OpenMcdf.Extensions/OLEProperties/PropertyFactory.cs b/sources/OpenMcdf.Extensions/OLEProperties/PropertyFactory.cs index c3dfd1d1..473e93f7 100644 --- a/sources/OpenMcdf.Extensions/OLEProperties/PropertyFactory.cs +++ b/sources/OpenMcdf.Extensions/OLEProperties/PropertyFactory.cs @@ -17,7 +17,7 @@ public static PropertyFactory Instance get { -#if NET6_0_OR_GREATER +#if NETSTANDARD2_0_OR_GREATER Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); #endif return instance.Value; diff --git a/sources/OpenMcdf.Extensions/OpenMcdf.Extensions.csproj b/sources/OpenMcdf.Extensions/OpenMcdf.Extensions.csproj index de48f741..bc2bec7a 100644 --- a/sources/OpenMcdf.Extensions/OpenMcdf.Extensions.csproj +++ b/sources/OpenMcdf.Extensions/OpenMcdf.Extensions.csproj @@ -1,6 +1,6 @@  - net6.0;net40 + netstandard2.0;net40 Debug;Release true diff --git a/sources/OpenMcdf/OpenMcdf.csproj b/sources/OpenMcdf/OpenMcdf.csproj index e052324d..981c24fd 100644 --- a/sources/OpenMcdf/OpenMcdf.csproj +++ b/sources/OpenMcdf/OpenMcdf.csproj @@ -1,6 +1,6 @@  - net6.0;net40 + netstandard2.0;net40 Debug;Release true @@ -78,7 +78,7 @@ true - 2.2.1.12 + 2.3.0.0 true ironfede https://opensource.org/licenses/MPL-2.0 @@ -88,9 +88,10 @@ Compound file, c#, structured storage OpenMcdf is a 100% .net / C# component that allows developers to manipulate Microsoft Compound Document File Format for OLE structured storage. It supports read/write operations on streams and storages and traversal of structures tree. - Copyright © 2010-2022, Federico Blaseotto + Copyright © 2010-2023, Federico Blaseotto README.md - Bug fixing #88 and #90 + Bug fixing #75 #76 #84 #94 #96 +Updated to .NET 6.0 OpenMcdf icon.png diff --git a/sources/Test/OpenMcdf.MemTest/OpenMcdf.MemTest.csproj b/sources/Test/OpenMcdf.MemTest/OpenMcdf.MemTest.csproj index 339be086..6229aad1 100644 --- a/sources/Test/OpenMcdf.MemTest/OpenMcdf.MemTest.csproj +++ b/sources/Test/OpenMcdf.MemTest/OpenMcdf.MemTest.csproj @@ -53,6 +53,10 @@ AllRules.ruleset + + False + ..\..\..\bin\Debug\OpenMcdf\net40\OpenMcdf.dll + @@ -84,12 +88,6 @@ true - - - {56e15d4a-8a37-4c7c-bb44-fd59aff220c1} - OpenMcdf - -