【问题标题】:System.TypeLoadException: get_TargetFramework doesn't have an implementationSystem.TypeLoadException:get_TargetFramework 没有实现
【发布时间】:2023-03-31 15:45:02
【问题描述】:

我正在尝试使用 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

【问题讨论】:

    标签: c# visual-studio testing exception nunit


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2011-03-04
      • 2017-04-28
      • 2020-08-08
      • 1970-01-01
      • 2017-12-27
      • 2020-06-17
      • 2020-07-19
      • 2013-04-06
      • 2017-10-13
      相关资源
      最近更新 更多