TFS 对于不同的项目具有不同的二进制文件夹
我有一个包含 Silverlight 项目、几个 Web 应用程序和一些 Windows 服务及其小型 Winforms 测试应用程序的解决方案。
当我使用 TFS 构建它时,它将所有二进制文件放入 Binaries
文件夹中。它还创建一个 _PublishedWebsites
文件夹,在其中放置可供部署的 Web 应用程序。
我希望一些项目将其输出放在 Binaries
文件夹中的单独目录中。我希望通常在 bin\Release
文件夹中找到的文件位于该文件夹中。
我费了很长时间才找到关于如何实现这一目标的稀缺文档,而且仅限于 TFS 2008。那里有一篇很好的文章 链接文本 以及 VS 2010 的另一个条目 链接文本。但是,这些都不起作用:-(
构建似乎忽略了
属性。我尝试摆弄
属性,但不幸的是,如果我使用 $(OutDir)
属性我获取了 Binaries
目录中的所有文件,而不仅仅是刚刚编译的文件
目前我正在设置一个单独的文件 。构建只包含我感兴趣的项目,但我真的希望一次性构建该版本所需的所有文件
编辑:我没有说得足够清楚,但我正在使用最新的。我在项目级别设置了 TFS (TFS 2010 RTM) 版本,如我提供的链接中所述
。
I've got a solution with Silverlight projects, a couple Web applications and some Windows service and their small Winforms test applications.
When I build it using TFS it puts all binary files in the Binaries
folder. It also creates a _PublishedWebsites
folder where it puts the web applications ready for deployment.
What I would like is for a few of the projects to have their ouput in a separate directory in the Binaries
folder. I want the files that I would normally find in the bin\Release
folder to be there.
I looked long and hard and could only find scarce documentation on how to achieve that and only for TFS 2008. There's a good article there link text and another entry for VS 2010 there link text. However, none of these work :-(
It seems that the build ignores the <OutputPath>
property. I tried fiddling with the <AfterBuild>
property but unfortunately if I use the $(OutDir)
property I get ALL the files in the Binaries
directory and not only the ones that just got compiled.
At the moment I'm setting up a separate build that only has the projects I'm interested in that get compiled but I would really like to have all the files needed for the release built all at once.
EDIT: I didn't make it clear enough but I'm using the latest version of TFS (TFS 2010 RTM). I set up <OutputPathDir>
on the project level as explained in the links that I provided.
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在构建定义 (.proj) 文件中,检查是否
此外,如果您尝试编译曾经是“网站”项目类型(从文件 -> 新建 -> 网站 -> 创建的项目,则可能会遇到一些问题;ASP.NET 网站)。他们似乎每次都会覆盖输出目录。我们必须将其中一些转换为类库。
In your build definition (.proj) file, check that
Also, you may run into some problems if you're trying to compile what was once a "website" project type (created from File->New->Website->ASP.NET Webiste). They seem to override the output directory every time. We had to convert some of those to class libraries instead.