Visual Studio 2017 包与 netcoreapp2.1 NU1202 不兼容错误

问题描述:

每当我尝试运行我的项目时,我都会收到此 NU1202 错误,这是我公司提供的自定义软件包之一.我试过删除文件夹并从远程重新克隆,但无济于事.

Whenever I try to run my project I keep getting this NU1202 error, for one of the custom packages provided by my company. I've tried deleting the folder and recloning from remote, to no avail.

奇怪的是,它对我团队中的其他人来说效果很好.

The odd thing is that it works just fine for other people in my team.

这个答案解决了我的问题:https://*.com/a/34935038/1794871

This answer fixed my problem: https://*.com/a/34935038/1794871

这是由于 VS2017 使用了在我的机器中本地缓存的包.必须删除它们并下载最新版本.

It was due to VS2017 using packages which were cached locally in my machine. They had to be removed and the latest version downloaded.