We are using our own nuget server on the local network. I've got a dotnet standard 2.0 library which I'm packaging via nuget. Currently it's at 1.0.5.4 (both File version and Assembly version).
However when I install it in another solution it's missing a property that I added in the latest version increment. When I F12 on a class of that nuget it reads at the top:
#region Assembly lib-mycode-async, Version=1.0.5.1, Culture=neutral, PublicKeyToken=null
// C:\Users\{Username}\.nuget\packages\lib.mycode\1.0.5.4\lib\netstandard2.0\lib-mycode-async.dll
#endregion
In the nuget Manager GUI of Visual Studio it says 1.0.5.4 everywhere. I uninstalled the nuget from all projects of the solution,
- uninstalled any other package that used that particular nuget
- did
Update-Package -reinstall
to reinstall all nuget packages in the solution - closed and reopened Visual Studio (2019 but also remember having had this with 2017)
- rebuild the nuget packages
- cleaned the nuget package cache in Options > Nuget Package Manager > General > Clear All NuGet Cache(s)
Why does it appear to be up to date everywhere and still I cannot use the latest code changes?