I have Coded-UI test project that has references to other assemblies in solution. Somehow some assemblies are not copied to TestResults/Out
directory, while others are copied. All assemblies have Copy Local
option true
(don't know if it really matters though) and are absolutely equal in other options. All assemblies are copied when I start test locally from VS2010, but not when on build server.
If I use [DeploymentItem]
attribute to force deployment of these "naughty" assemblies they deploy successfully.
I can't get it - I've always thought that if you reference assembly (in References
section of Solution Explorer
) that assembly will be copied to TestResults/Out
and [DeploymentItem]
is needed to copy some .xml and other config files.