Replies: 4 comments
-
You'd have to create the equivalent of https://github.com/kzu/GitInfo/blob/master/src/GitInfo/build/GitInfo.cs.pp for the C++ you want to generate and send a PR. You can use the MSBuild properties in any way you can in the C++ project file, though. |
Beta Was this translation helpful? Give feedback.
-
I actually haven't managed to get this to work in a C++ project file. For some reason, even if you set the variable GitThisAssembly to true, the provided variables are never populated, report is never printed (with importance set to high). Relevant log lines:
Then no other reference to GitInfo. I've tried adding GitInfo as a dependency for my main Build target, but no luck. I think that different properties are assigned and used for building in VC++, as CoreCompileDependsOn is never reassigned to have the GitInfo targets injected. |
Beta Was this translation helpful? Give feedback.
-
Please use Once that works and you have the equivalent of the Thanks! |
Beta Was this translation helpful? Give feedback.
-
hey @OhSoGood @TravisDean any chance you could give this PR a try for this scenario? #130 🙏 thanks! |
Beta Was this translation helpful? Give feedback.
-
Excellent work, kzu. Nice and simple, versus other complex and black-box like solutions. Brilliant (like a Moq :) )...
Can you use this nuget package for managed c++? If not could you extend it ?
Regards
Beta Was this translation helpful? Give feedback.
All reactions