GitVersion v6.x.x how do i now access GitVersionInformation? #3892
Replies: 1 comment 3 replies
-
I have updated to GitVersion.MSBuild v6.0.0-beta.7 but still yet to work out a solution to accessing this since the static -> const change. this is what im attempting from the guide but gitVersionInformationType is always null However, i cannot see these entries on v6.0.0. Can someone please point me in the right direction? |
Beta Was this translation helpful? Give feedback.
-
In GitVersion.MSBuild v5.12.0 running on .net6 i can use this
@GitVersionInformation.InformationalVersion
on a razor page to successfully retrieve the version.After attempting to try out v6.0.0-beta5 it seems it cannot find
GitVersionInformation
any more. I imagine this is related to #3095 where its been changed from static string to const string back in v6.0.0-alpha.1In the Visual Studio ObjectBrowser i can see the internal static class exists.
however this seems to be completely missing in v6.x.x
am i trying to access this the incorrect way for the new version and its done differently now, or is this something broken?
thanks
Beta Was this translation helpful? Give feedback.
All reactions