msbuild 和更新 tfs 中的文件

发布于 2024-09-17 09:06:09 字数 404 浏览 2 评论 0原文

我需要一些帮助来创建 msbuild 脚本。

我们在我们的环境中使用 TeamCity 5.1.2、VS2010 (.net 4.0) 和 TFS。我们在 tfs 中有一个“SharedLib”文件夹,其中放置了多个项目使用的 dll。

我们所做的是,我们有一个处理数据库访问的数据库项目,当我们构建该项目时,构建后事件会将输出 dll 复制到 SharedLib 文件夹。我们的“客户端”项目引用 SharedLib 文件夹中的 dll。

我想要做的是,当我将数据库项目中的文件签入 tfs 时,构建会在 teamcity 中启动。如果构建成功,我想从 tfs 中的 SharedLib 文件夹中签出数据库 dll,使用新版本更新该文件,然后再次将该文件签入 tfs。

我怎样才能编写一个 msbuild 脚本来为我做到这一点?

I need some help to create a msbuild script.

We are using TeamCity 5.1.2, VS2010 (.net 4.0) and TFS in our environment. We have a "SharedLib" folder in tfs where we put those dll's that are used by multiple projects.

What we do is that we have a database project that handles db access and when we build that, a post build event copies the output dll to the SharedLib folder. Our "client" projects reference that dll from the SharedLib folder.

What I want to do is that when I check in files from the database project into tfs, the build is started in teamcity. If the build is successfull, I want to check out the database dll from the SharedLib folder in tfs, update the file with the new version and check in that file to tfs again.

How can I write a msbuild script that does that for me?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文