安装 Windows 服务作为团队建设的一部分
遵循此处的指南在 tfs2010 中成功发布我的 Windows 服务。但还有几个问题:
我如何修改它以从放置位置而不是 OutDir 安装服务? 如何才能仅在成功构建并运行测试后才进行此安装?
Followed the guidance here to publish my windows service successfully in tfs2010. But have a few more questions:
How could I modify this to install the service from the drop location instead of OutDir?
How could I make this install happen only after a successful build AND test is run?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于初学者,请阅读如果测试失败则构建失败当您的测试失败时,您的构建也会失败。然后在部署操作中添加一个条件,以确保它仅在构建成功时激活:
要从放置位置而不是构建位置安装,请替换
$(OutDir)
由您关注的原始帖子中的$(DropLocation)
提供。这就是大家!
For starters, read Fail a build if tests fail to fail your build when your test fails. Then add a condition in your deploy action to make sure it is only activated when your build succeeds:
To install from your drop location instead of your build location, replace
$(OutDir)
by$(DropLocation)
in the original post you are following.That's all folks!