Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio 2019 auto removed nuget packages after debug

Every time I add any nuget package to my .net core application, it stays for a bit but it seems like after I start a debug and end it, the nuget package removed automatically from Visual studio project.

Is any thing changes in visual studio 2019?

like image 463
Faraz Ahmed Avatar asked Jan 26 '23 10:01

Faraz Ahmed


1 Answers

After searching on internet I found solution on this developer community Website.

  1. Close VS2019
  2. Delete the ".vs" folder
  3. Open VS2019, add the NuGet package
  4. Save all

I suspect "Save all" after adding a NuGet package might be key here.

like image 191
Faraz Ahmed Avatar answered Feb 12 '23 19:02

Faraz Ahmed