用visual studio创建的所有.net core解决方案不能添加工程, 解决:the project file cannot be opened by the project system,,because it is missing some critical imports or the referenced sdk cannot be found.

解决方案:

右击我的电脑->属性->高级系统设置->高级->环境变量->系统变量
在path变量中添加 C:\Program Files\dotnet\ 然后重启visual studio

注意:不要改变原来的值,只要在后面添加,用分号分割。

然后就可以正常使用了,如图。

posted @ 2020-06-04 12:11  风无心客  阅读(834)  评论(0编辑  收藏  举报