You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I checked the nuget package folder at C:\Users\Daz Work\.nuget\packages\microsoft.extensions.caching.memory\8.0.1 - under its \lib directories for each target framework - it only contained .xml files, not any .dll files.
I deleted the package, cleared http cache, and ran restore again. This time the complete package was installed including dll files. My compiler woes went away.
I am curious to know how I may have ended up with a corrupt package (coincidentally just missing ".dll" files), and how come VS / dotnet restore isn't checking package integrity of referenced packages and giving meaningful errors about that - or perhaps I can turn that on somehow?
Verbose Logs
The text was updated successfully, but these errors were encountered:
I just spend a few hours wondering why my code wouldn't compile after a package was updated
I created a simple console application and added a package reference to the Microsoft.Extensions.Caching.Memory package (version 7.0.0) using the dotnet add package command. Then, I used the same command to update the version to 9.0.0 and did not encounter the issue where package files were deleted.
We are tracking a related issue internally and it is marked as priority 3 now.
NuGet Product Used
Other/NA
Product Version
dotnet restore, visual studio restore
Worked before?
not sure
Impact
It's more difficult to complete my work
Repro Steps & Context
I just spend a few hours wondering why my code wouldn't compile after a package was updated
Compiler couldn't find
Which is part of the the
Microsoft.Extensions.Caching.Memory
nuget packagehttps://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.dependencyinjection.memorycacheservicecollectionextensions.addmemorycache?view=net-9.0-pp&viewFallbackFrom=net-6.0
No errors about package integrity issues.
When I checked the nuget package folder at
C:\Users\Daz Work\.nuget\packages\microsoft.extensions.caching.memory\8.0.1
- under its\lib
directories for each target framework - it only contained.xml
files, not any.dll
files.I deleted the package, cleared http cache, and ran restore again. This time the complete package was installed including dll files. My compiler woes went away.
I am curious to know how I may have ended up with a corrupt package (coincidentally just missing ".dll" files), and how come VS / dotnet restore isn't checking package integrity of referenced packages and giving meaningful errors about that - or perhaps I can turn that on somehow?
Verbose Logs
The text was updated successfully, but these errors were encountered: