Visual Studio Online: Multiple build controllers - how to add a new build controller

早过忘川 提交于 2019-12-12 06:38:04

问题


I have multiple projects hosted on Visual Studio Online (Formerly TFS Service)

For one of my solutions, I have created a hosted build controller that runs xUnit to run all my unit tests. This works fine as everytime I check in my code, Continuous Integration kicks in, building my solution and runs my tests.

This is the build controller popup in Solution A (from VS2012)

In the Properties page:

Now I'm trying to use nUnit for another Solution B, but I can't seem to figure how I can create another build controller. When I open the build controller window in Solution B, I see the exact same thing that I see in Solution A and I can't find an "Add" option.

How can I have multiple build controllers so that I can use different test frameworks for different solutions.


回答1:


Can you not just use one Build Controller that has access to both NUnit and XUnit assemblies. Why not change the path to custom assemblies to: $/Asis.Ess.BuildController/

Then your builds can use both Xunit or Nunit assemblies and no need to have multiple build controllers and/or agents.



来源:https://stackoverflow.com/questions/22826673/visual-studio-online-multiple-build-controllers-how-to-add-a-new-build-contro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!