Question

I've just installed cruisecontrol on a staging server and I'm trying to compile a solution using MSBuild. One of the projects is a MVC web application running .net 4.5. I have, of course, installed .net 4.5 on the machine. I have also deployed the site to a staging site on the same server, and it runs fine.

... but when I try to build on the command line with MSBUILD project.csproj I get the following error:

  (CoreCompile target) ->
  Controllers\AdminController.cs(12,36): error CS0246: The type or namespace name 'Controller' could not be found (are you missing a using directive or an assembly reference?) [F:\CruiseControl\WorkingDirectory\project.csproj]

It seems that MSBuild can't see any of the MVC objects such as Controller. They're certainly on the machine, and asp.net can see them or the website wouldn't run.

I'm running MSBuild from the C:\Windows\Microsoft.NET\Framework64\v4.0.30319 directory.

No correct solution

OTHER TIPS

It seems I need to install MVC on the build server. I had been under the impression that it was part of the framework now, but I guess it's still a separate install.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top