Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mage.exe, MinVersion, and "The minimum version specified is not valid."

Tags:

clickonce

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?

like image 733
Wallace Kelly Avatar asked Jan 08 '23 13:01

Wallace Kelly


1 Answers

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

like image 122
Wallace Kelly Avatar answered May 09 '23 13:05

Wallace Kelly