Yes I unlinked NCover via the TypeMock Configurator. Currently my "profiler/Code coverage tool to link to TypeMock.NET" = - None -
I also checked that HKEY_CLASSES_ROOTCLSID{6287B5F9-08A1-45E7-9498-B5B2E7B02995}InprocServer32
default key is equal to C:PROGRA~1NCoverCoverLib.dll. Which it does.
The Nant script currently looks like...
<!-- test - Run Unit Tests and Compile Test Coverage Statistics -->
<target name="test" depends="build">
<!-- Dynamically load TypeMock task. -->
<property name="typemock.dir" value="C:Program FilesTypeMockTypeMock.NET" />
<property name="typemock.tasks" value="${typemock.dir}TypeMock.NAntBuild.dll"/>
<loadtasks assembly="${typemock.tasks}" />
<trycatch>
<try>
<typemockstart link ="NCover" profilerlaunchedfirst="true" target="2.0"></typemockstart>
<exec program="${NCoverConsoleExe}" workingdir="${NAnt_LogDir}"
commandline=""${NUnitConsoleExe}"
${NUnitConfigFile} /config:${BuildConfig} /xml:NUnitTests-results.xml
/include:${NUnitIncludeCategories}
/nologo /noshadow" output="${NAnt_LogDir}NCover_log.xml" failonerror="true"/>
</try>
<finally>
<typemockstop/>
</finally>
</trycatch>
</target>
The error is still:
test:
[loadtasks] Scanning assembly "TypeMock.NAntBuild" for extensions.
[typemockstart] TypeMock.NET Enterprise License - License will expire in 29 day(s)
BUILD FAILED
INTERNAL ERROR
System.IO.FileNotFoundException: Could not load file or assembly 'Configuration, Version=3.7.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file spec
ified.
File name: 'Configuration, Version=3.7.1.0, Culture=neutral, PublicKeyToken=null'
at TypeMock.NAntBuild.TypeMockStopTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.TaskContainer.ExecuteChildTasks()
at NAnt.Core.TaskContainer.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Contrib.Tasks.TryCatchTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLMSoftwareMicrosoftFusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLMSoftwareMicrosoftFusion!EnableLog].
Please send bug report to
nant-developers@lists.sourceforge.net.
Total time: 0.4 seconds.