我的项目有以下.nuspec文件:
<package >
<metadata>
<id>Dependencies</id>
<version>1.0.0.0</version>
<title>Dependencies</title>
<authors>Author</authors>
<owners>AnAuthor</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>NuGet package that is used for dependencies resolution.
</description>
<releaseNotes></releaseNotes>
<copyright>Copyright 2017</copyright>
<tags>Nuget</tags>
<dependencies>
<group targetFramework="net40">
<dependency id="NUnit" version="[2.6.3,)" />
<dependency id="Internal.Package" version="[2017.2.100.0,)" />
</group>
</dependencies>
现在,当我试图打包时:
NuGet.exe pack Dependencies.nuspec -Verbosity normal
NuGet.exe install Dependencies -Prerelease -ExcludeVersion -OutputDirectory
..\..\packages -NoCache -Verbosity normal
我收到以下错误:
Attempting to resolve dependency 'Internal.Package (>= 2017.2.100.0)'.
'1.0.0.beta.1' is not a valid version string
检查包后,确实发布了包含此类版本的包。但是这个版本怎么变得无效?我不能以版本格式插入任何字符(major.minor.build.rev)吗?也许这可以在nuget manager中配置?