I cant update Nuget Package in Visual Studio 2022 (System.NullReferenceException: Object reference not set to an instance of an object at NuGet.PackageManagement.UI.UIActionEngine)


Question: Why is NuGet UI in Visual Studio 2022 not allowing me to upgrade NuGet Packages? It throws an error saying "System.NullReferenceException: Object reference not set to an instance of an object at NuGet.PackageManagement.UI.UIActionEngine.<>c.<ResolveActionsForUpdateAsync>b_9_0(PackageIdentity package)"


Login to See the Rest of the Answer

Answer:
This error means that there is a package inside the YourProjectName.csproj that is preventing other packages from getting upgraded. Take a look and see if you have a line in YourProjectName.csproj that says:

"<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.4" />"

If you do, just comment it out if you are not using SQLite in your project, for some reason SQLite was automatically included in the past Project Templates.

I hope this helps you resolve your problem. If not take a look at another article here.





Marionon said:

Bitcoin (BTC) might just be the golden opportunity of our era, poised to skyrocket to $200,000 in the upcoming year or the one following. In the past year alone, BTC has witnessed a staggering 20-fold increase, while other cryptocurrencies have surged by an astounding 800 times! Consider this: a mere few years ago, Bitcoin was valued at just $2. Now is the time to seize this unparalleled chance in life. Join Binance, the world's largest and most secure digital currency exchange, and unlock free rewards. Don't let this pivotal moment slip through your fingers! ?Click the link below to enjoy a lifetime 10% discount on all your trades. https://swiy.co/LgSv

Posted On: March 30, 2024 19:31:19 PM
John said:

Another way I solved this issue is by making sure that you don't have any other errors in the referenced project (shared project). This will prevent you from upgrading NuGet Packages in your Project. These errors sometimes are not shown unless you toggle between Intellisense and Build Errors in the "Error List" Window.

Posted On: September 01, 2021 15:18:19 PM

© 2024 - ErnesTech - Privacy
E-Commerce Return Policy