From ef0bf2758e9b0810af8f4a0bd7caa352ff97743c Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 13 Jul 2016 13:26:01 +0100 Subject: [PATCH] Add Silverlight 5 --- README.md | 3 +++ src/SharpCompress/IO/MarkingBinaryReader.cs | 4 +++- src/SharpCompress/project.json | 14 +++++++++++++- test/SharpCompress.Test/project.json | 2 +- 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 229eda6f..307dd418 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,9 @@ I'm always looking for help or ideas. Please submit code or email with ideas. Un ## Version Log +### Version 0.12.1 +* Support Silverlight 5 + ### Version 0.12.0 * .NET Core RTM! * Bug fix for Tar long paths diff --git a/src/SharpCompress/IO/MarkingBinaryReader.cs b/src/SharpCompress/IO/MarkingBinaryReader.cs index 56db2398..a3662144 100644 --- a/src/SharpCompress/IO/MarkingBinaryReader.cs +++ b/src/SharpCompress/IO/MarkingBinaryReader.cs @@ -65,11 +65,13 @@ namespace SharpCompress.IO { throw new NotSupportedException(); } - + +#if !SILVERLIGHT public override decimal ReadDecimal() { throw new NotSupportedException(); } +#endif public override double ReadDouble() { diff --git a/src/SharpCompress/project.json b/src/SharpCompress/project.json index bc15fd16..13d67fb5 100644 --- a/src/SharpCompress/project.json +++ b/src/SharpCompress/project.json @@ -1,5 +1,5 @@ { - "version": "0.12.0", + "version": "0.12.1", "title": "SharpCompress - Pure C# Decompression/Compression", "authors": [ "Adam Hathcock" ], "language": "en-US", @@ -30,6 +30,18 @@ "allowUnsafe": true } }, + "sl5": { + "buildOptions": { + "warningsAsErrors": true, + "allowUnsafe": true, + "define": [ "NO_FILE", "NO_CRYPTO", "SILVERLIGHT" ] + }, + "frameworkAssemblies": { + "mscorlib": "", + "System": "", + "System.Core": "" + } + }, "netstandard1.0": { "buildOptions": { "warningsAsErrors": true, diff --git a/test/SharpCompress.Test/project.json b/test/SharpCompress.Test/project.json index b077ab1a..b1011ff4 100644 --- a/test/SharpCompress.Test/project.json +++ b/test/SharpCompress.Test/project.json @@ -17,7 +17,7 @@ }, "dependencies": { "Microsoft.Extensions.PlatformAbstractions": "1.0.0", - "SharpCompress": "0.12.0", + "SharpCompress": "0.12.1", "xunit": "2.2.0-beta2-build3300", "dotnet-test-xunit": "2.2.0-preview2-build1029" }