我在Framework 3.5中创建了我的第一个项目,并转换到了Framework 4.5,它的工作完美。其次,我试图将此项目的引用添加到在Framework 4.5中创建的另一个项目中。在添加引用后构建第二个项目时,我得到了一个错误消息:
1. The primary reference "xxx" could not be resolved because it was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v3.5".
2. The type or namespace name 'xxx' could not be found (are you missing a using directive or an assembly reference?)
字符串
请给我一些建议,我错过了什么。
1条答案
按热度按时间2ic8powd1#
看起来你的第二个项目不是针对.net 4.5 framework的。你可以右键单击你的第二个项目,然后转到属性->应用程序。
它会说目标框架是3.5,将其更改为4.5,并确保这也是您的第一个项目的情况