pkg = updateDependency(pkg,depName,verRange)
updates the version ranges of the specified dependencies and returns the specified package
object with updated properties. The package pkg must be in editable
mode.
The pkg object represents the
MyPackage, which depends on MyOtherPackage. Update
MyPackage so that it requires MyOtherPackage to be
version 2.0.0 or higher.
Package, specified as a matlab.mpm.Package object.
Package dependencies to update, specified as a string array, character vector, or
cell array of character vectors containing the name of the dependencies to update.
Version range, specified as a string scalar, character vector, or matlab.mpm.Version object. This option limits the output to only packages
whose Version property is within the specified version range.
Version syntax follows the Semantic
Versioning 2.0.0 format: <major
version>.<minor
version>.<patch version>,
where each version number must be a nonnegative integer, for example
1.2.3. You can optionally specify a pre-release version by adding
-<pre-release version> to the end
of the version, for example 1.2.3-alpha. Optionally specify a build
version by adding +<build
version>.
Specify a range of versions by including the <,
<=, >, or >= operators in
front of a version number. For example, >2.1.13 specifies all
versions greater than 2.1.13. Specify more than one range separated
by white space to further limit matches. For example, >2.1.13
<=2.1.15 includes versions 2.1.14 and
2.1.15, but not 2.1.13 or
2.1.16. Use the || operator to designate
multiple acceptable version ranges. For example, <2.1.13 ||
>2.1.15 includes versions less than 2.1.13 and greater
than 2.1.15, but not 2.1.14.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.