引用的项目 x 不存在 [英] The referenced project x does not exists

查看:38
本文介绍了引用的项目 x 不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿嘿,我将一个项目的解决方案从 vs2008 升级到 vs2010.

Hej All, I upgraded my solutions of a project from vs2008 to vs2010.

但是现在我有一个奇怪的问题.我在多个解决方案中引用了一个项目(3 个解决方案)在其中 2 个解决方案中,引用出错了.

But right now I have a weird problem. I reference a project in multiple solutions (3 solutions) In 2 of those solutions the referencing goes wrong.

我可以添加引用(项目引用),但是在构建时收到警告,引用的项目 x 不存在.以及我必须添加参考的错误.

I am able to add the reference (project reference) but when I build I got the warning the referenced project x does not exists. And errors that I have to add an reference.

我已经删除并重新添加了该项目,与引用相同但没有结果.

I already deleted and added the project again, same with the references but no result.

有人知道吗?

问候,

乔纳森

推荐答案

确保您的项目没有使用.NET Framework 4 Client Profile"作为目标框架,这是这些问题的最常见来源.

Make sure your project is not using the ".NET Framework 4 Client Profile" as target framework, this is the most common source of these problems.

您可以在目标框架下的项目属性中检查这一点.

You can check this in the project properties under Target Framework.

来自 MSDN:

如果您的目标是 .NETFramework 4 Client Profile,你不能引用不在的程序集.NET Framework 4 客户端配置文件.相反,您必须针对 .NET框架 4. 有关更多信息,请参阅.NET Framework 故障排除定位错误.

If you are targeting the .NET Framework 4 Client Profile, you cannot reference an assembly that is not in the .NET Framework 4 Client Profile. Instead you must target the .NET Framework 4. For more information, see Troubleshooting .NET Framework Targeting Errors.

这篇关于引用的项目 x 不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆