When I run the ClickOnce mage.exe utility, creating a new deployment manifest, using both the -MinVersion
and -Install
options, I receive an error.
> mage.exe -New Deployment -Install true -Version 1.0.0.0 -MinVersion 1.0.0.0
The minimum version specified is not valid.
How can I avoid this error message?
The options -Install
and -MinVersion
cannot be used in the same command line. This is a shortcoming, if not a bug, in mage.exe. Consequently, you must apply those options in two separate commands. For example,
> mage.exe -New Deployment -Install true -Version 1.0.0.0
deploy.application successfully created
> mage.exe -Update deploy.application -MinVersion 1.0.0.0
deploy.application successfully updated
HT: http://geekswithblogs.net/rakker/archive/2008/07/16/123828.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With