From 7982cad71555f719907c7605622ca044ceabe1ba Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Tue, 7 Mar 2017 16:27:19 +0100 Subject: [PATCH] Support NETStandard 1.3, 1.6 --- plist-cil/BinaryPropertyListParser.cs | 5 +++-- plist-cil/plist-cil.csproj | 25 +++++++++++++++++++++---- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/plist-cil/BinaryPropertyListParser.cs b/plist-cil/BinaryPropertyListParser.cs index 867bdcb..1c5539e 100644 --- a/plist-cil/BinaryPropertyListParser.cs +++ b/plist-cil/BinaryPropertyListParser.cs @@ -23,6 +23,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. using System; +using System.Diagnostics; using System.Text; using System.IO; @@ -378,7 +379,7 @@ namespace Claunia.PropertyList } default: { - Console.WriteLine("WARNING: The given binary property list contains an object of unknown type (" + objType + ")"); + Debug.WriteLine("WARNING: The given binary property list contains an object of unknown type (" + objType + ")"); break; } } @@ -401,7 +402,7 @@ namespace Claunia.PropertyList int intType = (int_type & 0xF0) >> 4; if (intType != 0x1) { - Console.WriteLine("BinaryPropertyListParser: Length integer has an unexpected type" + intType + ". Attempting to parse anyway..."); + Debug.WriteLine("BinaryPropertyListParser: Length integer has an unexpected type" + intType + ". Attempting to parse anyway..."); } int intInfo = int_type & 0x0F; int intLength = (int)Math.Pow(2, intInfo); diff --git a/plist-cil/plist-cil.csproj b/plist-cil/plist-cil.csproj index cdd89cd..e43e8ea 100644 --- a/plist-cil/plist-cil.csproj +++ b/plist-cil/plist-cil.csproj @@ -1,7 +1,7 @@  - netcoreapp1.0;net40 + netcoreapp1.0;netstandard1.3;netstandard1.6;net40;net45 1.15 Natalia Portillo Claunia.com @@ -18,6 +18,7 @@ plist-cil.snk True True + true @@ -28,8 +29,8 @@ TRACE;DEBUG - - NETCOREAPP1_0;NETCORE + + $(DefineConstants);NETCORE @@ -40,11 +41,27 @@ bin\Release\net40\plist-cil.xml - + + + + + + + + + + + + + + + + +