右击我的电脑->属性->高级系统设置->高级->环境变量->系统变量 在path变量中添加 C:\Program Files\dotnet\ 然后重启visual studio
注意:不要改变原来的值,只要在后面添加,用分号分割。
然后就可以正常使用了,如图。
用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.
原文:https://www.cnblogs.com/zhangq/p/13042707.html