简体   繁体   中英

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:

Install-Package 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

Successfully installed 'Microsoft.EntityFrameworkCore 5.0.1' to 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?

I have solved this by running

Install-Package 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. No other commands were needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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