I am beginner for TeamCity. And I have successfully setup TeamCity to build a Hello World ASP.NET MVC project. But once I added a NUnit test project in the solution, TeamCity always complains: NUnit relevant references are missing(which I absolutely don't miss them in the code) see following screenshot:
My NUnit project is very simple. Just one class:
And the TeamCity error is:
My configuration in TeamCity is very simple. I have just one Build Step using MsBuild:
I have tried to use MsBuild locally to run the project. It works well.
So what could be the problem of buiding it in TeamCity? I don't expect NUnit tests to run in the MsBuild step in TeamCity. As I know, I can creat another Build Step using NUnit runner to do it. Now I just want to pass the first MsBuild Step.
My environment:
- Visual Studio 2015 community
- .Net 4.6
- NUnit 2.6.2
- TeamCity 9.1.7