'Visual Studio 2022 manage nuget packages grayed out

I don't understand why all of a sudden I cannot manage my nuget packages? Anyone has had that problem?

enter image description here



Solution 1:[1]

Check your application is Running. if it is running it will not show nuget packages. stop the application and check

Solution 2:[2]

I find some hints.

In one sql.DB.QueryContext() call, our driver will step 1: call sql.DB.PrepareContext() to prepare sql.Stmt, and step 2: call sql.Stmt.QueryContext(), and step 3: run sql.Stmt.finalClose() due to Rows.Close()

Both in step 1 and step 2, sql.Stmt will apply one sql.driverConn, and append it into sql.Stmt.css. In step 3, sql.Stmt will be removed in each sql.driverConn in sql.Stmt.css, which will acquire sql.driverConn lock. This will cause contention.

In our case, we don't care so much about security. We will implement QueryerContext interface in Golang sql/driver avoid unnecessary PrepareContext.

refer http://go-database-sql.org/prepared.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AKHIL RAJAN
Solution 2 7king