简体   繁体   English

更新 Nuget 包产生未列出的版本

[英]Updating Nuget Package yields unlisted version

So we just recently started working with Nuget and had an open source repo that we published.所以我们最近才开始与 Nuget 合作,并发布了一个开源存储库。 We took a few attempts to get the versioning right and had one version that we decided we didn't want to go with.我们进行了几次尝试以正确地进行版本控制,并且有一个我们决定不想使用的版本。 We first released 1.0.0 and then updated with a date scheme releasing 1.0.10252017 after.我们首先发布了 1.0.0,然后更新了发布 1.0.10252017 的日期方案。 We eventually decided we'd rather stick with a simpler scheme and unlisted 1.0.10252017.我们最终决定我们宁愿坚持使用更简单的方案和未列出的 1.0.10252017。 After this we published 1.0.1, 1.0.2, and 1.0.3 after that.在此之后,我们发布了 1.0.1、1.0.2 和 1.0.3。

The thing that I am soo confused about is this.我很困惑的事情是这个。 We are currently using this Nuget in some of our other projects and it has been awhile since the faulty version was unlisted but when I enter my Package Manager console and enter Update-Package OurNugetPackage it updates to the unlisted version!我们目前正在我们的其他一些项目中使用这个 Nuget,自从错误版本未列出以来已经有一段时间了,但是当我进入我的包管理器控制台并输入 Update-Package OurNugetPackage 时,它​​会更新到未列出的版本! How is this possible?这怎么可能? I can see that if I do Uninstall-Package OurNugetPackage and then Install-Package OurNugetPackage it brings in 1.0.3 is there something we are doing wrong?我可以看到,如果我执行 Uninstall-Package OurNugetPackage 然后 Install-Package OurNugetPackage 它带来了 1.0.3 是不是我们做错了什么?

Looks like I found my answer.看起来我找到了我的答案。 This seems to currently be a bug with the Package Manager Console in VS 2017 not filtering out unlisted packages on Update-Package commands.目前这似乎是 VS 2017 中包管理器控制台的一个错误,它没有过滤掉更新包命令中未列出的包。 Uninstall-Package and then Install-Package is the current workaround. Uninstall-Package 和 Install-Package 是当前的解决方法。

Open Issue on Github: https://github.com/NuGet/Home/issues/5069 Github 上的未解决问题: https : //github.com/NuGet/Home/issues/5069

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM