Whenever I build my solution, the unit tests are unable to reference the StyleCop Analyzers Nuget packages. I've tried uninstalling the packages, cleaning and re-building them, reinstalling the Nuget packages, cleaning and re-building them, restoring the Nuget packages but none of these methods seem to work. I am unable to progress as this is posing problems in the Jenkins pipeline.
This is a known problem (something that Visual Studio doesn't properly clean up) when migrating from packages.config to PackageReference. The fix is very easy though:
Open the csproj file and remove the 2 lines below: