Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果您查看屏幕截图,参考已经完成,但它仍然给出错误,为什么会这样。
通过您的屏幕截图,我确定您的项目框架已设置为客户端配置文件。将其更改为 .Net Framework 4。一切都会好起来的。你可以像这样设置
right click your project-->properties-->Application-->Target framework
将其设置为 .Net Framework 4而不是.Net Framework 4 客户端配置文件