TFSPreview: NUnit and MOQ Projects Fail Build
-
Friday, July 20, 2012 3:07 PM
HI,
I've tried several way to build some projects in TFSPreview that have NUnit and MOQ.
The assembly references are not found.
I had redone the projects to have the assembly folders for NUnit included and stripped out the MOQ for now and reset ref to the upload assembly in the solution path.
It still fails to build.
How to we use thrid party tools with TFSPreview to build.
Any details on how to do?
Or is this even possible to do??
Thanks
Ron
All Replies
-
Friday, July 20, 2012 5:26 PM
You need to add the reference through nuget.
This is needed to make it work:
Right click on the Solution in Solution Explorer
Click on “Enable NuGet Package Restore”
Click “Yes” when prompted
The blog has a lot more information so have a look for a complete fix with explanationsA walkthrough and useful information here, http://blogs.msdn.com/b/jpricket/archive/2012/05/10/using-nuget-with-tfs-build-automation.aspx
Please remember to mark the replies as answers if they help.
Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader
Facebook: Visual Studio Bytes
Videos: ALM Videos
- Proposed As Answer by Trevor HancockMicrosoft Employee, Moderator Wednesday, August 01, 2012 9:16 PM
- Marked As Answer by Lily_WuMicrosoft Contingent Staff, Moderator Thursday, August 09, 2012 10:21 AM
-
Wednesday, August 01, 2012 9:16 PMOwnerRon, did Tarun's reply resolve your issue? Please make it as ANSWER if so. Otherwise, please reply with more details on the current issue.
Trevor Hancock (Microsoft)
Please remember to "Mark As Answer" the replies that help. -
Friday, December 21, 2012 4:14 PM
I think I have installed NUnit and updated the build controller to look at the NUnit assemblies, but get this error from the build:
Other Errors and Warnings
0 error(s), 1 warning(s)
No test is available in C:\a\bin\My.Tests.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.Inside of VS2012 the tests run fine with the builtin test runner and I have even setup things so they get run after each build.
I just can't seem to make this to build on your cloud build server. It builds all my assemblies and copies the NUNIT and other assemblies to the c:\a\bin\ directory just fine.
Can you please tell me how to diagnose this?
- Edited by AlanEasyPower Friday, December 21, 2012 4:19 PM
- Proposed As Answer by serginio17 Sunday, March 24, 2013 11:51 PM
- Unproposed As Answer by serginio17 Sunday, March 24, 2013 11:51 PM
-
Monday, February 25, 2013 8:48 PM
I am getting the same error.
No test is available in C:\a\bin\AMTests.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
I am using NUNIT and deploying my files to the TFS build server. I would like the NUNIT tests to be run after the build is complete.
Any update on this issue?
Thanks!
Tom
-
Friday, March 22, 2013 5:33 AM
I have the same issue.. Have you found any resolution to the problem. I have installed the NUnit adapter and pointed to assemblies in Source Control but Team Build still does not locate the NUnit tests. Same message as above:
...........Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.
Thanks.
Sergei
- Edited by serginio17 Friday, March 22, 2013 5:34 AM
-
Sunday, March 24, 2013 11:58 PM
Hi AlanEasyPower,
I had the same issue with following message when running Team Build using Visual Studio 2012
Other Errors and Warnings
0 error(s), 1 warning(s)
No test is available in C:\a\bin\My.Tests.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.Managed to resolve it in a very simple way. I updated my Build Server Visual Studio with the latest updates including the Extensions updates. After installing all updates all worked perfectly including NUnit and Moq. However, for Moq to work you still need to add the reference through Nuget which is pretty easy really. As described above by Tarun__Arora
Regards,
Sergei
- Edited by serginio17 Monday, March 25, 2013 12:01 AM
-
Sunday, March 24, 2013 11:59 PM
Hi
I had the same issue with following message when running Team Build using Visual Studio 2012
Other Errors and Warnings
0 error(s), 1 warning(s)
No test is available in C:\a\bin\My.Tests.dll. Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again.Managed to resolve it in a very simple way. I updated my Build Server Visual Studio with the latest updates including the Extensions updates. After installing all updates all worked perfectly including NUnit and Moq. However, for Moq to work you still need to add the reference through Nuget which is pretty easy really. As described above by Tarun__Arora
Regards,
Sergei
- Edited by serginio17 Sunday, March 24, 2013 11:59 PM
- Edited by serginio17 Monday, March 25, 2013 12:01 AM


