![](/img/trans.png)
[英]System.TypeLoadException: Method 'get_xxx' does not have an implementation
[英]System.TypeLoadException: get_TargetFramework doesn't have an implementation
我正在嘗試使用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
你有ReSharper嗎? 我有相同的錯誤,並禁用ReSharper,它解決了這個問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.