I got this exception when I tried to run tmockrunner from command line this morning. :
cmd /C "TMockRunner "C:Program FilesNUnitin
unit-console.exe" "*.nunit""
"*.nunit"
NUnit version 2.4.8
Copyright (C) 2002-2007 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.
Runtime Environment -
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3
CLR Version: 2.0.50727.3053 ( Net 2.0.50727.3053 )
Could not load file or assembly 'TypeMock, Version=5.2.2.0, Culture=neutral, PublicKeyToken=3dae460033b8d8e2' or one of its dependencies. The system cannot find the file specified.
Here are some of the background info, hopefully it helps you guys to reproduce the problem and suggest a workaround ASAP:
-
I am currently using version 5.2.3.0
-
When installing version 5.2.2.0, instead of using one-click install, I used custom install. So I chose the installation path to be "C:Program FilesTypeMockIsolator". So the tmockrunner is now located in "C:Program FilesTypeMockIsolator"
-
When installing version 5.2.3.0, I also used custom install, and chose the same directory so that I could override the old copy of Typemock.
-
I checked the tmockrunner version number, it's 5.2.3.0.