Reputation: 39118
I'm not exactly a master of TeamCity (yet!) so please accept my apologies if this question is poorly formulated.
In my local IDE I can rebuild the solution. In TeamCity, I can do that too. Then, I add a new project, which has a reference to an external DLL (Oracle.DataAccess). While the local version builds without problems, I now get an error when running the build from TeamCity.
It claims that the problem is as follows.
error CS0012:
The type 'Oracle.DataAccess.Client.OracleDbType' is defined in an assembly that is not referenced.
You must add a reference to assembly 'Oracle.DataAccess,
Version=2.112.1.0, Culture=neutral, PublicKeyToken=89b483f429c47342'.
I've checked that I'm targeting the correct repository to avoid this mistake. The only thing that changes is that I'm adding the project to the solution. I also noticed that removing the reference from the project fails the local build with the same message as the TC's. However, readding the reference to it (followed by a check-in) doesn't reciprocate the success of rebuild...
Suggestions?!
Upvotes: 0
Views: 1113
Reputation: 1345
Make sure that reference to Oracle.DataAccess has attribute CopyLocal = true.
Also, take a look at the other properties as well. The path might be set to a locally available drive pointing to a file that isn't checked in to the VCS.
Upvotes: 2