Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to build asp.net mvc web application with TeamCity

I have an Asp.Net MVC Web Application that I am developing. I have TeamCity installed on my development workstation, and have been running CI builds on. All has been working fine. I'd like to move TeamCity off of my machine, and onto the new dev/build server that was just delivered. I do not want to install Visual Studio onto the build server. But it seams that msbuild cannot build the Web Application project.

E:\TeamCity\buildAgent\work\48e528785fe346fa\src\Web\Web.csproj(489, 11): error MSB4019: The imported project "C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplication.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

I've found a few hits on google, but nothing acceptable. Suggestions were to either install Visual Studio, or copy certain directories from Visual Studio over to the server, etc.

What can I do to enable TeamCity to build my project on the dev/build server.

like image 323
JohnRudolfLewis Avatar asked May 01 '09 13:05

JohnRudolfLewis


1 Answers

Looks like copying the file over will definitely work. Have you tried it? Think of the .targets file as a series of definitions for how MSBuild will do its work.

like image 176
Peter J Avatar answered Sep 21 '22 02:09

Peter J