TFS2010中MSBuild OutputPath和OutDir的问题 [英] Problems with MSBuild OutputPath and OutDir in TFS2010

查看:316
本文介绍了TFS2010中MSBuild OutputPath和OutDir的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个非常大的解决方案(大约300多个)项目,我们正在尝试通过TFS2010上的MSBuild进行构建. 我们可以通过MSBuild在所有开发机器上进行构建,并且正在采用TFS.

We have a very large solution (some 300+) projects and we are trying to build it via MSBuild on TFS2010. We can build it via MSBuild on all out development machines, and are in the process of adopting TFS.

我们的代码结构如下:

bin\Client
bin\Server
Framework\ClientFramework.csproj
Modules\Module1\Project1
Modules\Module2\Project2
etc.

每个项目都有一个相对的OutputPath,它将代码构建到bin Client或Server目录.因此,例如,Project1.csproj的输出路径为".. \ .. \ bin \ Client".

Each project has a relative OutputPath which builds the code to the bin Client or Server directory. So for example, Project1.csproj has an OutputPath of "..\..\bin\Client".

我们似乎遇到了一个问题,即在TFS MSBuild中,OutDir设置为固定路径:

We seem to be having a problem that in TFS MSBuild the OutDir is set to a Fixed Path:

C:\Builds\MyProject\Binaries\

因此在解决OutDir顶部的相对OutputPath时,事情变得令人困惑

So things are getting confusing when resolving the relative OutputPath on top of the OutDir

  • ClientFramework转到C:\ Builds \ MyProject \ Binaries \ .. \ bin \ Client
  • Project1转到C:\ Builds \ MyProject \ Binaries \ .. \ .. \ bin \ Client

我们也有一些Post build事件,这些事件将某些3rd Party dll复制到bin文件夹中,这些路径也无法正确解析.

We also have some Post build events that copy some 3rd Party dll's to the bin folders, these paths cannot be resolved properly either.

我认为我们要采取的解决方案是将所有内容构建到现有的bin \ Client,bin \ Server结构中,然后将文件夹从bin移至Binaries.

I think the solution we are after is to build everything to our existing bin\Client, bin\Server structure and then move the Folders from bin to Binaries.

任何关于如何实现此目标或我们应该如何工作的想法都受到赞赏,但是更新现有项目可能会遇到问题,因为它们都可以与VS,开发人员命令行构建以及CC.net一起使用.

Any ideas on how to accomplish this or how we should be working, are appreciated, but updating our existing projects might prove problematic, as it all works with VS, developer command line builds and with CC.net.

推荐答案

我在MSDN上找到了答案: http://msdn.microsoft.com/en-us/library/ff977206.aspx

I found the answer on MSDN : http://msdn.microsoft.com/en-us/library/ff977206.aspx

这篇关于TFS2010中MSBuild OutputPath和OutDir的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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