[英]VS 2019 Install-Package Automatically Updated Dependencies - How to revert?
My project uses an older version of EF Core and when I tried to run this:我的项目使用的是旧版本的 EF Core,当我尝试运行它时:
Install-Package Microsoft.EntityFrameworkCore.InMemory安装包 Microsoft.EntityFrameworkCore.InMemory
It uninstalled and reinstalled a bunch of from this previous version to the latest version.它从以前的版本卸载并重新安装了一堆到最新版本。 Example:
例子:
Successfully uninstalled 'Microsoft.EntityFrameworkCore XXX' from Project从 Project 中成功卸载“Microsoft.EntityFrameworkCore XXX”
Successfully installed 'Microsoft.EntityFrameworkCore 5.0.1' to Project成功将“Microsoft.EntityFrameworkCore 5.0.1”安装到 Project
There are a bunch of others as well.还有一堆其他的。 Can I revert this somehow?
我可以以某种方式恢复它吗? Also, if I want to keep the InMemory package do I have to specify an older version so it does not update what I assume are these dependencies?
另外,如果我想保留 InMemory package,我是否必须指定一个旧版本,这样它才不会更新我假设的这些依赖项?
I have solved this by running我已经通过运行解决了这个问题
Install-Package Microsoft.EntityFrameworkCore.InMemory -Version XXX安装包 Microsoft.EntityFrameworkCore.InMemory -Version XXX
This uninstalled the 5.0.1 versions and reinstalled the older version of all the dependencies that were previously updated.这卸载了 5.0.1 版本并重新安装了之前更新的所有依赖项的旧版本。 No other commands were needed.
不需要其他命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.