I kept getting this error for all my unit test dlls even though I was absolutely certain that their locations were 100% fully trusted on my local cdrive. I even checked using the .net config tool in control panel. Finally I had a go at specifying the full paths to the dlls and 'viola' it worked! You'll see that in the previous posting we use /testcontainer:%%~ff . The necessary bit is ~f. To find out more about this you can type 'for /?' in the a command window.
In addition, substitution of FOR variable references has been enhanced.
%~I - expands %I removing any surrounding quotes (")
The modifiers can be combined to get compound results:
%~dpI - expands %I to a drive letter and path only