devlooped / GitInfo

Git and SemVer Info from MSBuild, C# and VB

Home Page:https://clarius.org/GitInfo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IsDirty is no more constant

fabianoriccardi opened this issue · comments

I had just upgraded GitInfo to v3.0.6. With respect to v2.x, the IsDirty flag is no more constant, and I cannot use it to generate the Assembly Metadata. Will you solve this regression?

Steps to Reproduce

[assembly: AssemblyInformationalVersion(ThisAssembly.Git.IsDirty ? "dirty" : "")]

Expected Behavior

It should compile, instead it says that IsDirty is not constant.

Version Info

GitInfo v3.0.6

use IsDirtyString instead as a workaround for now

Fixed in #288. Shipping in v3.1.0