We have a VS 2103 solution with many projects. Some of them load MEF components from a MEF folder under the solution, so it is the same for all projects. The folder is set in app/web.config with a realtive path and all works fine on the development machines.
TC obviously creates the correct structure under the work/<SolutionID> folder, but runs the tests from buildagent/temp folder. This screws up any code trying to read the config file or using AppDomain.CurrentDomain.BaseDirectory because the solution structure is not present on the temp folder.
What is the solution for this ?