Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default value for GitIsDirty #23

Closed
dueringa opened this issue Jan 20, 2017 · 2 comments
Closed

Set default value for GitIsDirty #23

dueringa opened this issue Jan 20, 2017 · 2 comments

Comments

@dueringa
Copy link
Contributor

Could you set a default value for the property GitIsDirty in GitInfo.targets?

All other properties have default values, e.g. master for the branch, 0.1.0 for default version.

My problem is: If I build my project in a non-git setting (e.g. an exported version), the generated ThisAssembly.g.cs says
public const bool IsDirty = $GitIsDirty$;
and the build fails.

(Fot the time being, I set <GitIsDirty>1</GitIsDirty> in my project file. I'm not sure if this is the preferred solution).

@kzu
Copy link
Member

kzu commented Jan 20, 2017 via email

@dueringa
Copy link
Contributor Author

Issue is fixed by this.

@devlooped devlooped locked and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants