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

GitInfo does not work when the project does not compile any source file #17

Open
fabiostrocco opened this issue Aug 23, 2018 · 0 comments

Comments

@fabiostrocco
Copy link

fabiostrocco commented Aug 23, 2018

Assume no compilation is involved in a project, this is the case for example in .nuproj projets.
When the project references the GitInfo nuget package, the targets (GitInfo, GetVersion, etc.) are not executed. However, it would be nice to also access git information properties in .nuproj files that only contain metadata such as targets files and do not produce any assembly.

Git information retrieval currently only occurs only when compilation occurs, as
shown in the lines below extracted from GitInfo.targets

<CoreCompileDependsOn>
      GitInfo;
      GitVersion;
      GitThisAssembly;
      GitInfoReport;
      $(CoreCompileDependsOn)
</CoreBuildDependsOn>

The property above could be changed into something like CoreBuildDependsOn.

Or is there any specific reason for using CoreCompileDependsOn?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants