\d+))?" +
@"(?>\-(?[0-9A-Za-z\-\.]+))?" +
@"(?>\+(?[0-9A-Za-z\-\.]+))?$",
-#if NETSTANDARD
- RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture,
-#else
+#if COMPILED_REGEX
RegexOptions.CultureInvariant | RegexOptions.Compiled | RegexOptions.ExplicitCapture,
+#else
+ RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture,
#endif
TimeSpan.FromSeconds(0.5));
-#if !NETSTANDARD
+#if SERIALIZABLE
///
/// Deserialize a .
///
@@ -668,7 +668,7 @@ public override int GetHashCode()
return hashCode;
}
-#if !NETSTANDARD
+#if SERIALIZABLE
///
/// Populates a with the data needed to serialize the target object.
///
diff --git a/Semver/Semver.csproj b/Semver/Semver.csproj
index 66e589c..197075b 100644
--- a/Semver/Semver.csproj
+++ b/Semver/Semver.csproj
@@ -5,7 +5,7 @@
Copyright © 2013 Max Hauser, Jeff Walker
Semantic versioning
Max Hauser, Jeff Walker
- netstandard1.1;net452
+ netstandard1.1;netstandard2.0;net452
$(NoWarn);CS1591;CA1303
true
portable
@@ -26,20 +26,16 @@
0.0.0.0
-
- $(DefineConstants);NETSTANDARD;NETSTANDARD1_1
-
-
-
- $(DefineConstants);NET45
+
+ $(DefineConstants);SERIALIZABLE;COMPILED_REGEX
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive