Closed moh-hassan closed 2 years ago
au_Version
is used only when package is forced as to avoid automatic "fix" version. You specify version directly in au_GetLatest
the way you did manually, but you can also use mechanism you provided.
It's nice if $au_version
can update $Latest.Version
(when it's null ) , especially it's the core variable for updating the version in nuspec file.
Its not core vairable and mechanism you provided works. This is generally not the usuall workflow people do - they do not specify manually version over the command line but use Internet to get it.
In my scenario, I have chocolatey package in my project (not a separate project, so no need for remote url to extract the version), and I embed the binaries from disk in the package after building the project then pack and push from within appveyor. It's more commonly used in many projects.
Why do you need AU then ? You can replace lines in your own package in number of ways.
Sure I need AU to auto update my package. It simplify the update tasks :).
Hah, ok, if so, just use the method you described, no big deal.
I run the code:
Then I get the exception:
I expect that $Latest.Version is updated to $au_Version To resolve this issue, I had to:
Can $au_Version update $Latest.Version automatically?