I have a private NuGet feed where I publish package A. A has a version like 4.0.0.X (where X is the build number). When I change code, the build number is incremented and the package is published.
In the csproj, I have referenced the package like this:
<PackageReference Include="A" Version="4.0.*" />
I want to get the newest version of A, which has no major changes (which would result in a bump the minor section...). Unfortunately, if Nuget has downloaded a Version of A, it never attempts to check if there is a newer version. I can check manually, but then Nuget automatically pins the version in the csproj, which I have to re-edit.
How can I fix this? Fix means: I want a smooth dev experience for my CI workflow. Ideally, I have the newest package version on my dev computer without lots of manual work.