0
votes

I'm trying two build a Visual Studio(2013) solution in TeamCity. The solution contains three projects, one web project and two class library projects. I'm using Git for VCS and here is what the VCS root looks like:

VCS root

When I try to run a build, TeamCity shows the following error:

TeamCity error

I'm using Visual Studio(sln) runner type in my build step. And also the project builds without errors locally in Visual Studio.

What is the causing the error? How can I solve it?

Disclaimer: I'm new to both build automation and TeamCity.

1
Have a look in the Build Log in TeamCity for that build configuration to see more details on execution, the answer may be there. Another option is to login to Teamcity server and execute the same command it is running to see the sequence firsthand. That could give an insight what's happening and what's wrong there.Rod
@avidProgrammer : Open the project in the checkoutdirectory in Visual Studio 2013 and try to rebuild it. This will show you a clear idea of what is wrongNevin Raj Victor
@Rod, Oddly enough, the build log doesn't show anything.xabush
@NevinRajVictor, I did what you suggested and still the error shows up.xabush
@avidProgrammer : I am pretty sure that visual studio will give you the exact error message and not just compilation error.Check thatNevin Raj Victor

1 Answers

0
votes

When you run the build in teamcity,the code will checked out to a folder.By default it will be at Teamcity/buildagent/work/ .

Open the checkedout code there in visual studio and try and build.I am pretty sure that visual studio will give you the exact error message of what's going wrong.

Missing frameworks may be because of missing packages. Use a Nuget Installer build step to restore your packages. If it's not that, make sure you have pushed the code to repository properly.May be you are not pushing the entire code to the repository which causes missing frameworks.