在nuspec版本控制文档中,我看到了
1.0 = 1.0 ≤ x
(,1.0] = x ≤ 1.0
(,1.0) = x < 1.0
[1.0] = x == 1.0
(1.0) = invalid
(1.0,) = 1.0 < x
(1.0,2.0) = 1.0 < x < 2.0
[1.0,2.0] = 1.0 ≤ x ≤ 2.0
empty = latest version.
我有一个packages.config
看起来像这样
<packages>
<package id="psake" version="4.2.0.1" />
</packages>
我想将版本更改为“最新”。
我都尝试过
<packages>
<package id="psake" version="" />
</packages>
和
<packages>
<package id="psake" />
</packages>
但两者都导致 Unable to parse version value '' from 'packages.config'.
我正在使用Nuget.exe 2.8.2
从Nuget 2.8开始,您可以将以下属性添加到nuget.config中
<configuration>
<config>
<add key="dependencyversion" value="Highest" />
</config>
</configuration>
解决软件包时,将解决该软件包的最新版本。其他属性包括HighestMinor,HighestPatch和lowest(基于语义版本控制)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句