The snippet above results in a LogPath where a \ is obviously missing, considering the verbose build-output (focus on the filename) below:
Execute TypeMockStart, Version=22.214.171.124
TypeMockStart Target=, ProfilerLaunchedFirst=False, Link=, LogLevel=3, LogPath=C:\Users\OntwSvUsTfsBuild\AppData\Local\Temp\TypemockTFSBuild_20160112085119.log, EvaluationFolder=,DisableAutoLinkFalse
TypeMockStart Normal=Autolink 6442450944
TypeMockStart Normal=Log Directory C:\Users\OntwSvUsTfsBuild\AppData\Local\Temp\TypemockTFSBuild_20160112085119.log does not exists, Changing to default directory: E:\Builds\15\BZR.Net\BZR_Main_AT\src\Client.Build.Binaries\
TypeMockStart Normal=Typemock Isolator Logging to: E:\Builds\15\BZR.Net\AZR_Main_BT\src\Client.Build.Binaries\
There is a folder Typemock in my Temp-folder, but that is not what the activity is trying to write to. It now concatenated a path that is a filename TypemockTFSBuild_20160112085119.log which does not exist. The strange thing here is that it is changing the default directory to a COMPLETELY IRRELEVANT directory that has NOTHING to do with the currently running build. It is a completely different project and it could potentially contain other AutoDeploy-files! Why would you default-to a previously used folder instead of some static Temp-location?
Then I tried to workaround this issue by overriding the LogPath argument, simply by setting the string-value. I have not managed to finish that as Visual Studio keeps warning me that the value is invalid. Maybe I have worked too hard and try again tomorrow, but what is wrong with setting the LogPath with the value below?
LogPath="[Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\Temp\TypeMock\"]"
ProfilerLaunchedFirst="False" Verbosity="[BuildVerbosity.Diagnostic]" />
The LogPath value above is copied from the XAML source. Visual Studio in Design-Mode shows a message about an "Invalud L-value expression" that I can not explain considering the type of String that is used.
Your insights about all of the questions above is highly appreciated.