diff --git a/src/GitVersionCore/OutputVariables/VersionVariables.cs b/src/GitVersionCore/OutputVariables/VersionVariables.cs index bf1b206a..7a3659d2 100644 --- a/src/GitVersionCore/OutputVariables/VersionVariables.cs +++ b/src/GitVersionCore/OutputVariables/VersionVariables.cs @@ -1,4 +1,4 @@ -namespace GitVersion +namespace GitVersion { using System; using System.Collections; @@ -7,7 +7,7 @@ using System.Linq; using GitVersion.Helpers; using System.Reflection; - + using YamlDotNet.Serialization; @@ -128,8 +128,7 @@ public static IEnumerable AvailableVariables #if NETDESKTOP return typeof(VersionVariables).GetProperty(variable).GetValue(this, null) as string; #else - throw new NotImplementedException(); - // return typeof(VersionVariables).GetTypeInfo().GetProperty(variable).GetValue(this, null) as string; + return typeof(VersionVariables).GetProperty(variable).GetValue(this, null) as string; #endif @@ -196,8 +195,7 @@ public bool ContainsKey(string variable) #if NETDESKTOP return typeof(VersionVariables).GetProperty(variable) != null; #else - throw new NotImplementedException(); - // return typeof(VersionVariables).GetTypeInfo().GetProperty(variable) != null; + return typeof(VersionVariables).GetProperty(variable) != null; #endif } @@ -205,4 +203,4 @@ sealed class ReflectionIgnoreAttribute : Attribute { } } -} \ No newline at end of file +}