Myles McDonnell
Myles McDonnell

Reputation: 13335

NuGet Update Error?

Using the NuGet package manager dialog at the solution level in the normal course of updating a package reference once the process is complete there is a green tick on the item and the update button disappears. However, with certain of my packages the update process completes, as far as I can tell successfully, but no green tick and the update button remains. Press it again and the next dialog shows that no projects require an update for that package.

Am I missing something here or is this a bug?

Upvotes: 1

Views: 235

Answers (1)

Alexandre Dion
Alexandre Dion

Reputation: 9248

I found that this can happens when updating Solution-level packages. For some reason, they are updated side-by-side and the older package version causes the update to always appear as applicable. I filed an issue to clarify this behavior: #2062

Another way that this happens is when packages.config is excluded from the project. The package is updated but the new version is not updated in packages.config. Please, make sure that packages.config is included in the project.

Upvotes: 1

Related Questions