csc 错误 cs0006 元数据文件找不到使用 TFS 2012 构建 .net 3.5 应用程序 [英] csc error cs0006 metadata file could not be found building a .net 3.5 application with TFS 2012

查看:34
本文介绍了csc 错误 cs0006 元数据文件找不到使用 TFS 2012 构建 .net 3.5 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在从 TFS 2008 升级到 TFS 2012.我们的大多数应用程序是 .net 3.5 应用程序.
我们已经设置了 TFS 2012 环境并完成了迁移过程.当我们尝试构建我们的 .net 3.5 应用程序时,我们遇到了错误:

We are upgrading from TFS 2008 to TFS 2012. Majority of our applications are .net 3.5 applications.
We have setup a TFS 2012 environment and went through migration process. When we attempt to build our .net 3.5 applications we are getting the error:

csc error cs0006 metadata file could not be found........

如果我们采用 .net 3.5 应用程序,将其升级到 .net 4.x,然后再次运行构建,它就可以正常工作了.

If we take a .net 3.5 application, upgrade it to .net 4.x, then run the build again, it works just fine.

在此迁移过程中,我无法升级我拥有的每个应用程序.在迁移过程中或构建框上是否有我可能遗漏的东西以支持 3.5?

I cannot upgrade every single application I have during this migration. Is there something I might be missing either in the migration or on my build box to support 3.5?

我的构建服务器上安装了 VS 2008、2010、2012.我安装了 .net 框架等.

I have VS 2008, 2010, 2012 installed on my build server. I have .net frameworks installed, etc.

任何帮助都是有帮助的.

Any assistance is helpful.

推荐答案

可以在 Visual Studio 2012 中通过右键单击解决方案资源管理器中的项目并选择项目依赖项来指定项目依赖项和项目构建顺序.通过执行此操作,您的解决方案文件将得到修复.就我而言,我无需手动编辑解决方案文件即可解决此问题.

The project dependencies and project build order can be specified in Visual Studio 2012 by right clicking on the project in the solution explorer and selecting Project Dependencies. By doing this action, your solution file will be fixed. In my case I was able to fix this problem without manually editing the solution files.

这篇关于csc 错误 cs0006 元数据文件找不到使用 TFS 2012 构建 .net 3.5 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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