From 98e47bc6ad76c759bdd733207105f000e6d29e4e Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Fri, 27 Jul 2018 10:45:48 +0200 Subject: [PATCH] Multi target: ns2.0, ns1.3, net46 * Run tests against each target * Remove any dependency from ns2.0! --- Directory.Build.props | 1 + src/Sentry.Protocol/Dsn.cs | 2 +- src/Sentry.Protocol/Sentry.Protocol.csproj | 13 ++++++++++++- .../Sentry.Protocol.Tests.csproj | 16 +++++++++++++--- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 944da9d3f9..2ef2f63e71 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -18,6 +18,7 @@ /usr/local/lib/mono + $(BaseFrameworkPathOverrideForMono)/4.6-api $(BaseFrameworkPathOverrideForMono)/4.6.2-api true diff --git a/src/Sentry.Protocol/Dsn.cs b/src/Sentry.Protocol/Dsn.cs index 208510de80..8a20d3c5cc 100644 --- a/src/Sentry.Protocol/Dsn.cs +++ b/src/Sentry.Protocol/Dsn.cs @@ -76,7 +76,7 @@ private Dsn(string dsn, string projectId, string path, string secretKey, string /// true if the string represents a disabled DSN; otherwise, false. /// public static bool IsDisabled(string dsn) => - Constants.DisableSdkDsnValue.Equals(dsn, StringComparison.InvariantCultureIgnoreCase); + Constants.DisableSdkDsnValue.Equals(dsn, StringComparison.OrdinalIgnoreCase); /// /// Tries to parse the string into a diff --git a/src/Sentry.Protocol/Sentry.Protocol.csproj b/src/Sentry.Protocol/Sentry.Protocol.csproj index ce154c3118..26c0906f68 100644 --- a/src/Sentry.Protocol/Sentry.Protocol.csproj +++ b/src/Sentry.Protocol/Sentry.Protocol.csproj @@ -1,7 +1,7 @@  - netstandard2.0 + netstandard2.0;netstandard1.3;net46 7.2 Sentry.Protocol Sentry.Protocol @@ -9,4 +9,15 @@ The Sentry Protocol used to communicate with Sentry - Open-source error tracking that helps developers monitor and fix crashes in real time. + + + + + + + + + + + diff --git a/test/Sentry.Protocol.Tests/Sentry.Protocol.Tests.csproj b/test/Sentry.Protocol.Tests/Sentry.Protocol.Tests.csproj index c3c7d34c5f..aa205166b5 100644 --- a/test/Sentry.Protocol.Tests/Sentry.Protocol.Tests.csproj +++ b/test/Sentry.Protocol.Tests/Sentry.Protocol.Tests.csproj @@ -1,11 +1,21 @@  - netcoreapp2.1;netcoreapp2.0;net462 + netcoreapp2.1;netcoreapp2.0 + $(TargetFrameworks);net462 - - + + + + + + + + + + +