简体   繁体   English

System.TypeLoadException:get_TargetFramework没有实现

[英]System.TypeLoadException: get_TargetFramework doesn't have an implementation

I'm trying to test some code using Nunit and as I try to debug a Test I get this message: 我正在尝试使用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

Do you have ReSharper enabled? 你有ReSharper吗? I had the same error and disabled ReSharper and it resolved the issue. 我有相同的错误,并禁用ReSharper,它解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM