Cannot get GitVersion to populate Env. Vars. in localbuild, C#, VS2022 #4398
Unanswered
HerbertScroggins
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've tried to setup GitVersion for a WinForms app in C# using VS2022. Everything appears to be correct from what I can tell - I can tell GitVersion on the box is producing the json, I've tried with simple, complex and no gitversion.yml files in various locations, I get no errors that I can find but simply don't get the environment variables populated at the end of the ""BeforeBuild" target in the project file.
I've searched high and low for an answer but can't find anyone with the same issue. I've asked on SO but haven't had any replies. I've even resorted to both CoPilot and Gemini (I'm desperate!) but nothing seems to work so here I am.
One of the many GitVersion.yml files I've tried...
The output from
dotnet gitversion /output json
...The only version I can get in the EXE is...
I've put a step into the project file to log out the environment variables and the result are blank...
Can anyone please point out the (undoubtedly basic and obvious!) error I'm making please, I really cannot think what else to try.
Thanks heaps.
Beta Was this translation helpful? Give feedback.
All reactions