"无法更新项目引用"错误由Visual Studio 2012中引入 [英] "Cannot update project reference" error introduced by Visual Studio 2012

查看:387
本文介绍了"无法更新项目引用"错误由Visual Studio 2012中引入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个命令行构建这是工作的罚款与Visual Studio 2010。

I had a command line build which was working fine with Visual Studio 2010.

我现在想使用Visual Studio 2012中相同的解决方案。

I am now trying the same solution with Visual Studio 2012.

当我通过命令行来构建它:

When I build it via the command line:

devenv MediaPlayer.sln /build "Release|Any CPU"

我收到了一堆错误,与本网站:

I get a pile of errors with the website:

37> ------启动生成:项目:C:\\网络\\,配置:调试
  任何CPU ------

37>------ Build started: Project: C:...\Web\, Configuration: Debug Any CPU ------

37>无法更新项目引用'。开源项目
  不available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Cannot更新项目引用'。开源项目不
  available.Validating网站

37>Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Cannot update project reference ''. Source project not available.Validating Web Site

但后来我打开在Visual Studio 2012中相同的解决方案,并构建它。它建立。

But then I open the SAME solution in Visual Studio 2012, and build it. It builds.

然后我通过命令行运行此相同的版本,它的基础之上。

I then run this same build via the command line, and it builds.

所以,我签入,并让构建过程取入build目录,我也得到同样的错误。

So I check it in, and let the build process fetch it into the build directory, and I get THE SAME ERRORS.

在这一点上,我难倒下一步该怎么做。任何指针?

At this point, I'm stumped as to what to do next. Any pointers?

推荐答案

在Visual Studio的2012生成的输出称

When the Visual Studio 2012 build output says

无法更新项目引用

它实际上是说

出事了,你知道吗?

我不会告诉你这是什么!

I'm not going to tell you what it is!

BWAHAHAHAHAHAHAHAHAHAHAHAHA

BWAHAHAHAHAHAHAHAHAHAHAHAHA

一整天的搜索后,它来到了第三方库(Castle.Windsor.dll)中的.bin目录不是。我不知道为什么这个问题与Visual Studio 2012而不是Visual Studio中出现了2010年。我的猜测是,在Visual Studio 2010中,这是自动复制,因为它是另一个项目的网站是依赖的依赖。

After a full days search, it came down to a third party library (Castle.Windsor.dll) not being in the .bin directory. I don't know why this problem showed up with Visual Studio 2012 and not Visual Studio 2010. My guess is that in Visual Studio 2010, this was automatically copied over because it was a dependency of another project the website was dependent on.

我手动创建一个 .REFRESH 文件为 Castle.Windsor.dll 城堡.Core.dll ,现在它的基础之上。

I manually created a .refresh file for Castle.Windsor.dll and Castle.Core.dll, and now it builds.

这篇关于"无法更新项目引用"错误由Visual Studio 2012中引入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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