diff --git a/src/Snap.Shared.Tests/Snap.Shared.Tests.csproj b/src/Snap.Shared.Tests/Snap.Shared.Tests.csproj
index f79c133d..a0794c6f 100644
--- a/src/Snap.Shared.Tests/Snap.Shared.Tests.csproj
+++ b/src/Snap.Shared.Tests/Snap.Shared.Tests.csproj
@@ -6,7 +6,7 @@
false
false
netcoreapp2.1;net461
- netcoreapp3.1
+ netcoreapp2.1
@@ -17,7 +17,7 @@
-
+
all
diff --git a/src/Snap.Tests/Snap.Tests.csproj b/src/Snap.Tests/Snap.Tests.csproj
index c9bd2b2c..69937a24 100644
--- a/src/Snap.Tests/Snap.Tests.csproj
+++ b/src/Snap.Tests/Snap.Tests.csproj
@@ -6,7 +6,7 @@
false
true
netcoreapp2.1;net461
- netcoreapp3.1
+ netcoreapp2.1;netstandard2.0
@@ -31,7 +31,7 @@
-
+
all
diff --git a/src/Snap/Core/NetFullFrameworkShimExtensions.cs b/src/Snap/Core/ShimExtensions.cs
similarity index 94%
rename from src/Snap/Core/NetFullFrameworkShimExtensions.cs
rename to src/Snap/Core/ShimExtensions.cs
index 45530314..431a9e9c 100644
--- a/src/Snap/Core/NetFullFrameworkShimExtensions.cs
+++ b/src/Snap/Core/ShimExtensions.cs
@@ -1,11 +1,11 @@
-#if NETFULLFRAMEWORK
+#if NETFULLFRAMEWORK || NETSTANDARD
using System.Collections.Generic;
using JetBrains.Annotations;
// ReSharper disable once CheckNamespace
namespace System.Linq
{
- internal static class NetFullFrameworkShimExtensions
+ internal static class ShimExtensions
{
public static IEnumerable SkipLast([NotNull] this IEnumerable source)
{
diff --git a/src/Snap/Core/SnapBinaryPatcher.cs b/src/Snap/Core/SnapBinaryPatcher.cs
index 26b52360..3ef3e517 100644
--- a/src/Snap/Core/SnapBinaryPatcher.cs
+++ b/src/Snap/Core/SnapBinaryPatcher.cs
@@ -1,9 +1,11 @@
// Resharper disable all
using System;
using System.IO;
+using System.IO.Compression;
using System.Threading;
using SharpCompress.Compressors;
using SharpCompress.Compressors.BZip2;
+using CompressionMode = SharpCompress.Compressors.CompressionMode;
// Adapted from https://github.com/LogosBible/bsdiff.net/blob/master/src/bsdiff/BinaryPatchUtility.cs
// Adapter from https://raw.githubusercontent.com/Squirrel/Squirrel.Windows/afe47c9c064bf9860404c61d6ef36d8ecb250b04/src/Squirrel/BinaryPatchUtility.cs
@@ -925,4 +927,4 @@ public static void ReadExactly(this Stream stream, byte[] buffer, int offset, in
}
}
}
-// Resharper enable all
\ No newline at end of file
+// Resharper enable all
diff --git a/src/Snap/CoreRunLib.cs b/src/Snap/CoreRunLib.cs
index e3bd3552..48077eb1 100644
--- a/src/Snap/CoreRunLib.cs
+++ b/src/Snap/CoreRunLib.cs
@@ -111,7 +111,7 @@ public bool Chmod([JetBrains.Annotations.NotNull] string filename, int mode)
{
if (filename == null) throw new ArgumentNullException(nameof(filename));
pal_fs_chmod.ThrowIfDangling();
- #if !NETFULLFRAMEWORK
+ #if NETCOREAPP
return pal_fs_chmod.Invoke(filename, mode) == 1;
#endif
var filenameUtf8 = Utf16ToUtf8(filename);
@@ -137,7 +137,7 @@ public bool SetIcon([JetBrains.Annotations.NotNull] string exeAbsolutePath, [Jet
{
throw new FileNotFoundException(iconAbsolutePath);
}
- #if !NETFULLFRAMEWORK
+ #if NETCOREAPP
return pal_set_icon.Invoke(exeAbsolutePath, iconAbsolutePath) == 1;
#endif
var exeAbsolutePathUtf8 = Utf16ToUtf8(exeAbsolutePath);
diff --git a/src/Snap/Snap.csproj b/src/Snap/Snap.csproj
index 28df5ccd..9914bea4 100644
--- a/src/Snap/Snap.csproj
+++ b/src/Snap/Snap.csproj
@@ -8,8 +8,8 @@
true
true
true
- netcoreapp2.1;net461
- netcoreapp3.1
+ netcoreapp2.1;netstandard2.0;net461
+ netcorapp2.1;netstandard2.0
true
false
diff --git a/src/Snapx.Tests/Snapx.Tests.csproj b/src/Snapx.Tests/Snapx.Tests.csproj
index 27c13438..93ee18e0 100644
--- a/src/Snapx.Tests/Snapx.Tests.csproj
+++ b/src/Snapx.Tests/Snapx.Tests.csproj
@@ -30,7 +30,7 @@
-
+
all