Skip to content

Commit 3c9c66a

Browse files
authored
Merge pull request #1502 from snovak7/feature/1469-dotnet-version-variable
CommandLine showvariable support in .NET Core
2 parents fa6a2b7 + 8dfa5e9 commit 3c9c66a

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

src/GitVersionCore/OutputVariables/VersionVariables.cs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,7 @@ public string this[string variable]
125125

126126
get
127127
{
128-
#if NETDESKTOP
129128
return typeof(VersionVariables).GetProperty(variable).GetValue(this, null) as string;
130-
#else
131-
throw new NotImplementedException();
132-
// return typeof(VersionVariables).GetTypeInfo().GetProperty(variable).GetValue(this, null) as string;
133-
#endif
134-
135-
136-
137129
}
138130
}
139131

@@ -193,16 +185,11 @@ public bool TryGetValue(string variable, out string variableValue)
193185

194186
public bool ContainsKey(string variable)
195187
{
196-
#if NETDESKTOP
197188
return typeof(VersionVariables).GetProperty(variable) != null;
198-
#else
199-
throw new NotImplementedException();
200-
// return typeof(VersionVariables).GetTypeInfo().GetProperty(variable) != null;
201-
#endif
202189
}
203190

204191
sealed class ReflectionIgnoreAttribute : Attribute
205192
{
206193
}
207194
}
208-
}
195+
}

0 commit comments

Comments
 (0)