System.TypeLoadException:get_TargetFramework没有实现

时间:2019-04-09 13:02:17

标签: c# visual-studio testing exception nunit

我正在尝试使用Nunit测试一些代码,并且在尝试调试测试时收到以下消息:

2019.04.09 14:56:12.490   ERROR System.TypeLoadException: Il metodo 'get_TargetFramework' del tipo 'NUnit.Engine.Extensibility.ExtensionNode' dell'assembly 'nunit.engine, Version=3.6.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb' non ha un'implementazione.
System.TypeLoadException: Il metodo 'get_TargetFramework' del tipo 'NUnit.Engine.Extensibility.ExtensionNode' dell'assembly 'nunit.engine, Version=3.6.1.0, Culture=neutral, PublicKeyToken=2638cd05610744eb' non ha un'implementazione.
   in NUnit.Engine.Services.ExtensionService..ctor()
   in NUnit.Engine.TestEngine.Initialize()
   in NUnit.Engine.TestEngine.GetRunner(TestPackage package)
   in JetBrains.ReSharper.UnitTestRunner.nUnit30.BuiltInNUnitRunner.<>c__DisplayClass6_0.<RunTests>b__0()
   in JetBrains.ReSharper.UnitTestRunner.nUnit30.BuiltInNUnitRunner.WithExtensiveErrorHandling(IRemoteTaskServer server, Action action)

Some tests just pass without any problems and others fail throwing this exception

1 个答案:

答案 0 :(得分:0)

您是否启用了ReSharper?我遇到了同样的错误,并禁用了ReSharper,它解决了该问题。