Closed moh-hassan closed 2 years ago
Use $au_Version
.
Thanks for reply.
How to use $au_Version
.
I used it like this :
function global:au_BeforeUpdate {
$au_Version='5.0.0' #todod remove revision number
}
Is it right?
$au_Force = $true; $au_version = "5.0.0"; .\update.ps1
I didn't want to pass a fixed value. I want to use the $au_version
by dropping the revision number. Is the above script the best use for dropping the revision number?
OK, set version in nuspec file to 0.0 programatically before calling update. Then it will never be fixed.
It works.
It's fine if there is a parameter -DropRevision
to use only x.y.z version (SemVer)
When run the demo with the command
if nuspec version match the remote version, i.e 5.0.0, au use date as a revision number and attach it to Version and generate package like:
copyq.5.0.0.20211117.nupkg
and nuspec version is modified to:
<version>5.0.0.20211117</version>
How to avoid adding date revision number in force update?