These are chat archives for chocolatey/ChocolateyGUI

17th
Oct 2017
Richard Simpson
@RichiCoder1
Oct 17 2017 15:11
@ferventcoder this should make you happy ;P chocolatey/ChocolateyGUI#493
The chocolatiest bot this side of the Mississippi
@choco-bot
Oct 17 2017 15:11
Richard Simpson
@RichiCoder1
Oct 17 2017 15:11
Exactly
Also has the nice side benefit of making our markdown fields accessible again.
Rob Reynolds
@ferventcoder
Oct 17 2017 15:14
woot!
Rob Reynolds
@ferventcoder
Oct 17 2017 23:34
semi-dumb question
how does a version get set on build?
Richard Simpson
@RichiCoder1
Oct 17 2017 23:42
Cake magic :P
Rob Reynolds
@ferventcoder
Oct 17 2017 23:42
yeah not helpful
right now I hate WIX
s/right now /
Richard Simpson
@RichiCoder1
Oct 17 2017 23:42
Long story short, we us a tool called GitVersion that uses the git history and current branch/tag/commit to determine a version number
What are you doin in wix?
Rob Reynolds
@ferventcoder
Oct 17 2017 23:43
and why isn't it actually doing that to the ChocolateyGui.exe when I build it locally?
Richard Simpson
@RichiCoder1
Oct 17 2017 23:43
It should be? Are you building with VS or with Cake?
Rob Reynolds
@ferventcoder
Oct 17 2017 23:43
it should be doing so (my strong IMHO)
build.ps1 (Cake)
have checked out the tag
Richard Simpson
@RichiCoder1
Oct 17 2017 23:44
Cake.Recipe might not run GitVersion on local builds :|
Let me check
Rob Reynolds
@ferventcoder
Oct 17 2017 23:44
ShouldExecuteGitLink ?
Richard Simpson
@RichiCoder1
Oct 17 2017 23:47
Hmm
One sec, gonna try something
Rob Reynolds
@ferventcoder
Oct 17 2017 23:48
not gitlink
Richard Simpson
@RichiCoder1
Oct 17 2017 23:48
Nope.
Lord, the version of gui on this machine is old.
(on my gaming computer)
Rob Reynolds
@ferventcoder
Oct 17 2017 23:49
found it
Richard Simpson
@RichiCoder1
Oct 17 2017 23:49
?
Rob Reynolds
@ferventcoder
Oct 17 2017 23:49
it's in setup context
in build.cake
it wants buildparameters.Version to be set
Richard Simpson
@RichiCoder1
Oct 17 2017 23:52
I should have a command for you in a sec. Trying to build an MSI and nupkg w/ a version of 0.15, rightZ?
Rob Reynolds
@ferventcoder
Oct 17 2017 23:52
pretty much
Richard Simpson
@RichiCoder1
Oct 17 2017 23:53
I swear, getting this build to run is turtles all the way down. my wix is badly out of date, and it requires .Net 3.5 :P
I think the magic command is .\build.ps1 -target Publish-Chocolatey-Packages. It won't actually publish , but it should do everything up until then
Verifying now
Rob Reynolds
@ferventcoder
Oct 17 2017 23:54
I was there and past
Richard Simpson
@RichiCoder1
Oct 17 2017 23:54
It didn't work?
Rob Reynolds
@ferventcoder
Oct 17 2017 23:54
but can't get the version to build correctly
Richard Simpson
@RichiCoder1
Oct 17 2017 23:54
In what way? Is the exe verison bad or something? Or are you getting an error?>
Rob Reynolds
@ferventcoder
Oct 17 2017 23:55
Calculated Semantic Version: 0.15.0
Building version 0.15.0 of ChocolateyGUI (Release, Default) using version 0.18.0.0 of Cake. (IsTagged: False)
this is the weird part
it gets the values correctly
just doesn't build ChocolateyGui.exe with the proper version
nor the MSI
both are built with 0.1.0
Richard Simpson
@RichiCoder1
Oct 17 2017 23:58
Sounds like the SolutionInfo.cs isn't getting updated properly
what does Source/SolutionInfo.cs say?
Rob Reynolds
@ferventcoder
Oct 17 2017 23:59
the wrong thing
so I deleted it
let's give it another shot