I updated my CodeRush for Roslyn from 16.1.8 to 16.1.9.
We are currently using Nunit.Framework Version 3.4.1 (which should be supported, the options say 3.4 or higher).
But when I try to run the UnitTest I get this:
Test started…
Can not start test framework provider.
Message: Mindestens ein Typ in der Assembly kann nicht geladen werden. Rufen Sie die LoaderExceptions-Eigenschaft ab, wenn Sie weitere Informationen benötigen.
Type: System.Reflection.ReflectionTypeLoadException
Source: mscorlib
StackTrace: bei System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
bei System.Reflection.RuntimeModule.GetTypes()
bei System.Reflection.Assembly.GetTypes()
bei System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
bei System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetExports(ImportDefinition definition)
bei System.ComponentModel.Composition.Hosting.AggregateCatalog.GetExports(ImportDefinition definition)
bei System.ComponentModel.Composition.Hosting.CatalogExportProvider.InternalGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
bei System.ComponentModel.Composition.Hosting.CatalogExportProvider.InnerCatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
bei System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
bei System.ComponentModel.Composition.Hosting.AggregateExportProvider.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExports(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
bei System.ComponentModel.Composition.Hosting.CompositionContainer.GetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition)
bei System.ComponentModel.Composition.Hosting.ExportProvider.TryGetExportsCore(ImportDefinition definition, AtomicComposition atomicComposition, IEnumerable`1& exports)
bei System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
bei System.ComponentModel.Composition.Hosting.ImportEngine.TryGetExports(ExportProvider provider, ComposablePart part, ImportDefinition definition, AtomicComposition atomicComposition)
bei System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable`1 imports, AtomicComposition atomicComposition)
bei System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part)
bei System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean shouldTrackImports)
bei System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImportsOnce(ComposablePart part)
bei System.ComponentModel.Composition.Hosting.CompositionContainer.SatisfyImportsOnce(ComposablePart part)
bei System.ComponentModel.Composition.Hosting.CompositionService.SatisfyImportsOnce(ComposablePart part)
bei DevExpress.CodeRush.TestRunner.Core.TestRunnerCompositionService.SatisfyImportsOnce(ComposablePart part)
bei System.ComponentModel.Composition.AttributedModelServices.SatisfyImportsOnce(ICompositionService compositionService, Object attributedPart)
bei DevExpress.CodeRush.TestRunner.Executor45.DefaultTestFrameworkExecutorProvider.GetTestFrameworkExecutor(String runnerAssembly)
Message: Die Datei oder Assembly "nunit.framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
Type: System.IO.FileNotFoundException
Source:
StackTrace:
Message: Die Datei oder Assembly "nunit.framework, Version=3.5.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
Type: System.IO.FileNotFoundException
Source:
StackTrace:
The message says that it can't find the file / assembly or one of it's dependencies.
I recreated the problem in a small testproject .
Hi Tobias,
Thank you for providing the project demonstrating the issue.
I've managed to reproduce it and passed it to our R&D team to analyze. We will inform you of our results.
Also, I have noticed that this ticket is marked as "Private". If you have no objections, we would like to make it public, so that other customers who are experiencing this problem can find it and track our progress. If you want us to remove any information from this thread prior to publishing, please let me know.
Regards,
Igor
Is there a way to disable the automatic update of CodeRush?
I do not have the "Automatic Updates" checked under "Extensions and Updates" in Visual Studio. But after starting my computer it updated to 16.1.9.
Hello,
I've created a separate ticket on your behalf (T452353: Is there a way to disable the automatic update of CRR?). It has been placed in our processing queue and will be answered shortly.
Is there a workaround to downgrade? I have been caught by the issue too and failed to manually downgrade to 16.1.8 by running the old vsix.
Hi,
We have already fixed this issue. Please install the build form the link below and let me know your results.
DevExpress.CodeRush.Roslyn-16.1.9.16329.vsix
Works fine again.
Thanks.
You are welcome!