问题描述
我最近安装了Visual Studio 2017.我迁移了在Visual Studio 2015中创建的现有项目。它已经迁移而没有任何错误。但是当我构建解决方案时,我得到100多个错误,说明包[Microsoft.AspNetCore ...]不兼容
与[netcoreapp ...]
这样列出的物品超过100种。我尝试重命名sdk值global.json,删除global.json中的sdk值,修复,卸载&重新安装Visual Studio 2017.但它们都不起作用。
我不知道在这里建议添加net451的位置,因为在迁移过程中会删除projects.json文件。
同一个项目在Visual Studio 2015中运行良好。所有问题都在迁移到Visual Studio 2017后开始。
请告诉我如何获取解决这个问题?
I recently installed Visual Studio 2017. I migrated the existing project which created in Visual Studio 2015. It got migrated without any errors. But when I build the solution I get 100+ errors stating Package [Microsoft.AspNetCore...] is not compatible with [netcoreapp...]
There are more than 100 items listed like this. I tried renaming the sdk value global.json, removing sdk value in global.json, repair, uninstall & reinstalling Visual Studio 2017. But none of them work.
I'm not sure where to add net451 as suggested in here because the projects.json file gets deleted while migration.
The same project was working fine in Visual Studio 2015. All issues started after migrating to Visual Studio 2017.
Please let me know how to fix this?
这篇关于包与netcoreapp不兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!