I rashly upgraded and I think this has broken Ncrunch. On starting up VS, I see a dialog saying...
Quote:"The 'Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the [ActivityLog.xml file in appdata]"
Activitylog.xml contains this report....
Quote: <description>SetSite failed for package [Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage]Source: 'Microsoft.VisualStudio.QualityTools.CodeCoverage' Description: Could not load file or assembly 'Microsoft.VisualStudio.Coverage.Analysis.Net, Version=17.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Coverage.Analysis.Net, Version=17.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.Coverage.Analysis.Net, Version=17.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
 at Microsoft.VisualStudio.TestTools.CodeCoverage.CodeCoverageManager..ctor()
 at Microsoft.VisualStudio.TestTools.TestCaseManagement.QualityToolsPackage.<InitializeAsync>d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
 at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
 at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!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 [HKLM\Software\Microsoft\Fusion!EnableLog].
</description>
The relevant part (I think) being "System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.Coverage.Analysis.Net"
If I ignore the error at VS startup, NCrunch just fails to initialise and generates these errors in the Test Output window (possibly a red herring)...
Quote:The following errors and warnings have occured during test discovery (enable debug mode for more information):
ERROR: Could not find out Visual Studio version: A 32 bit processes cannot access modules of a 64 bit process.
Warning: Could not identify Visual Studio version. Test Adapter for Google Test requires at least Visual Studio 2012 Update 1.
Could not locate debug symbols for 'D:\work\code\b4\Backend\CSharp\FirmwareEmulation\DeviceSim\bin\Debug\DeviceSim.exe'. To make use of '--list_content' discovery, ensure that debug symbols are available or make use of '<ForceListContent>' via a .runsettings file.
NUnit Adapter 4.1.0.0: Test discovery starting
NUnit Adapter 4.1.0.0: Test discovery complete
No test is available in D:\work\code\b4\Backend\CSharp\FirmwareEmulation\DeviceSim\bin\Debug\DeviceSim.exe. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
NUnit Adapter 4.1.0.0: Test discovery starting
NUnit Adapter 4.1.0.0: Test discovery complete
NUnit Adapter 4.1.0.0: Test discovery starting
NUnit Adapter 4.1.0.0: Test discovery complete
NUnit Adapter 4.1.0.0: Test discovery starting
NUnit Adapter 4.1.0.0: Test discovery complete
NUnit Adapter 4.1.0.0: Test discovery starting
NUnit Adapter 4.1.0.0: Test discovery complete
No test is available in D:\work\code\b4\Backend\CSharp\Tests\WebTests\bin\Debug\net5.0\WebTests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
NUnit Adapter 4.1.0.0: Test discovery starting
NUnit Adapter 4.1.0.0: Test discovery complete
Microsoft.VisualStudio.TestPlatform.ObjectModel.TestPlatformException: Could not find testhost
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Hosting.DotnetTestHostManager.GetTestHostProcessStartInfo(IEnumerable`1 sources, IDictionary`2 environmentVariables, TestRunnerConnectionInfo connectionInfo)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyOperationManager.SetupChannel(IEnumerable`1 sources, String runSettings)
at Microsoft.VisualStudio.TestPlatform.CrossPlatEngine.Client.ProxyDiscoveryManager.DiscoverTests(DiscoveryCriteria discoveryCriteria, ITestDiscoveryEventsHandler2 eventHandler)
========== Test discovery aborted: 1491 Tests found in 38.8 sec ==========
If you can remind me where to find the NCrunch log files I'll also have a look in those.
This occurs on two machines so while it _could_ be a personal configuration problem, the VS upgrade seems to be the smoking gun....