Inside my MsTests I have to reach and use a file in my project. So I am using Path.GetFullPath(@"..\..\..\name_of_file")
But when running the build I get a file not found because the context of the path is the temp directory (C:\TeamCity\buildAgent\temp\
) instead of the checkout directory where all my files are (C:\TeamCity\buildAgent\work\
Is there a config to change that? Or a better way to do it?