You can add the assembly configuration to the test project. In this configuration, add the PRIVATE_BUILD preprocessor definition.
Then you can use #IFDEF to determine which assembly to run:
#ifdef PRIVATE_BUILD
ApplicationUnderTest.Launch(pathToPrivateBuild, "", args);
#else
ApplicationUnderTest.Launch(pathToOfficialBuild, "", args);
#endif
, TFS .