I am trying to configure our Hundson Server for CI on a new project. Everything works fine, builds a project, tests a block and checks FxCop. But when I try to check the code using StyleCop, an error occurs. Firstly: we are developing in C # with MS VS 2010 and on Hudson Server there are .Net 4.0 and Windows SDK 7.1.
Now I added StyleCop.Targets to my SVN and linked the .cproj files to the file. If I build VS2010, everything will be fine, except for StyleCop warnings, but if Hundson Server is trying to build a project, this error occurs:
error MSB4062: The "StyleCopTask" task could not be loaded from the assembly
C:\Program Files (x86)\MSBuild\..\StyleCop 4.7\StyleCop.dll. Could not load file or
assembly 'Microsoft.Build.Utilities.v3.5, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot
find the file specified. Confirm that the <UsingTask> declaration is correct,
that the assembly and all its dependencies are available, and that the task
contains a public class that implements Microsoft.Build.Framework.ITask.
StyleCop.dll is on the way to the Hundson server, can someone tell me what I did wrong?
source
share