簡體   English   中英

System.TypeLoadException:get_TargetFramework沒有實現

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM