External references

Hi,

what do I have to do to compile projects with external references?
For example, I have a solution that reference a crystalreport dll (crystalreport is installed on the teamcity server) and I always have a missing reference error (Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.) It compile with VS2005. I have the same problem with a nunit project, teamcity did not find the nunit reference (The type or namespace name 'TestFixture' could not be found (are you missing a using directive or an assembly reference?)) while nunit has been installed on the teamcity server.
What do I wrong? (Sorry for wasting your time but I did not find any documentation about that.)

2 comments

Hello d'Artois Maximilien,

TeamCity uses MSBuild for VS2005 runner.
This issue may happen if you have build agent installed on a different
machine than server is.

Does MSBuild able to build the solution on the agent's checkout folder?
(just run msbuild.exe ]]> from path like c:\windows\Microsoft.NET\Framework\v2.0.50727)

If that have not helped, please check user accout is used for build agent's
service.

Thanks!
--
Eugene Petrenko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi,

what do I have to do to compile projects with external references?

For example, I have a solution that reference a crystalreport dll
(crystalreport is installed on the teamcity server) and I always have
a missing reference error (Could not load file or assembly
'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral,
PublicKeyToken=692fbea5521e1304' or one of its dependencies. The
system cannot find the file specified.) It compile with VS2005. I have
the same problem with a nunit project, teamcity did not find the nunit
reference (The type or namespace name 'TestFixture' could not be found
(are you missing a using directive or an assembly reference?)) while
nunit has been installed on the teamcity server.

What do I wrong? (Sorry for wasting your time but I did not find any
documentation about that.)



0

Hi,

I've changed the service user account used to build the solution and now it works!

Thanks again for your help!

Max.

0

Please sign in to leave a comment.