diff --git a/src/GitVersionCore/OutputVariables/VersionVariables.cs b/src/GitVersionCore/OutputVariables/VersionVariables.cs index bf1b206a7c..0aa07785e1 100644 --- a/src/GitVersionCore/OutputVariables/VersionVariables.cs +++ b/src/GitVersionCore/OutputVariables/VersionVariables.cs @@ -125,15 +125,7 @@ public string this[string variable] get { -#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; -#endif - - - } } @@ -193,16 +185,11 @@ public bool TryGetValue(string variable, out string variableValue) public bool ContainsKey(string variable) { -#if NETDESKTOP return typeof(VersionVariables).GetProperty(variable) != null; -#else - throw new NotImplementedException(); - // return typeof(VersionVariables).GetTypeInfo().GetProperty(variable) != null; -#endif } sealed class ReflectionIgnoreAttribute : Attribute { } } -} \ No newline at end of file +}