I'm working on Web site project which requires some Unit tests (for controllers, etc).
Solution:
WebPortal
WebPortal.Tests
Team Foundation Server is used for gated check in and build of the solution. Deployment is managed by Octopus. During the gated check in the following error occurs:
CSC: Metadata file 'D:\TFSBuilds...\Sources...\WebPortal\bin\WebPortal.dll' could not be found
In that destination only WebPortal.pdb file is generated, while the DLL is required by WebPortal.Tests project. The DLL in generated (int /bin) on localhost, however, so this error doesn't occur there. I have figured out, that TFS generates DLL in bin folder for Class Library type projects.
How could I fix that problem to be able to run unit tests on WebPortal while using gated check in?