VS2010:从构建中排除项目
我有一个解决方案,它有一个连接到 SQl 服务器的 wcf 服务。当我离线时,我有另一个用于开发和测试的服务,该服务存储在内存中。我想从我的团队构建中排除测试服务,因为我不希望将其部署给客户等。我该如何执行此操作?
I have a solution that has a wcf service that connects to SQl server. When I am offline I have another service that I use for development and testing that stores to in memory storage. I would like to exclude the test service from my Team build as I do not wish to deploy this to the customer etc. How do I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 VS2010 中,选择构建|配置管理器...。在“配置管理器”对话框中,在活动配置列表中选择。输入名称(例如 TeamBuild)并选择从 Release 复制。单击确定。
现在确保仅检查您想要构建计划团队构建的项目(不包括您的测试服务)。单击“确定”,保存解决方案并将其签入。
在团队构建定义中的“构建流程”下,选择刚刚保存的解决方案,然后在“配置”选项卡下选择 TeamBuild 配置。现在,仅构建您选择的项目。
In VS2010, select Build | Configuration Manager .... In the Configuration Manager dialog, select in the active configuration list. Enter a name (eg. TeamBuild) and select to copy from Release. Click OK.
Now make sure that only projects are checked that you want to have build a scheduled team build (exclude your test service). Click OK, save you solution and check it in.
In your Team build definition, under Build process, select the solution you just have saved and under the Configuration tab, select the TeamBuild configuration. Now, only the projects that you have selected are build.