Run Update-Package
command via Package Manager Console
This will fix MSB3277, what it does it reinstall all the packages and all related assemblies they come with to the highest version possible. It is also possible to update just specific package. Or downgrade after update if wanted, this fixed issue for me few times it came up. Depending on how many nuget packages you have, this process may take few minutes.
More info on official docs https://docs.microsoft.com/en-us/nuget/consume-packages/reinstalling-and-updating-packages