【问题标题】:!error! [execution] runtime context during PEX exploration!错误! [执行] PEX 探索期间的运行时上下文
【发布时间】:2013-07-05 09:54:49
【问题描述】:

我在 PEX 探索期间有以下几点:

!错误! [执行] 运行时上下文 Microsoft.Pex.Engine.Libraries.MicrosoftVisualBasicLibrary+ProjectErrorRuntimeContextAttribute+Context 未能打开

[symbols] 无法加载 C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualBasic\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll 的符号

[符号] 搜索路径:;

!错误! [执行] 运行时上下文 Microsoft.Pex.Engine.Libraries.MicrosoftVisualBasicLibrary+ProjectErrorRuntimeContextAttribute+Context 回滚失败

我尝试通过卸载几个软件更新来解决这个问题(如While running PEX getting error 中所述),但不幸的是问题仍然存在。

有人找到解决办法了吗?

最好的问候, JP

【问题讨论】:

  • 欢迎来到 StackOverflow!无需添加您的签名 - 您的用户卡会自动放置在您的帖子下方。

标签: visual-studio-2012 windows-7 pex


【解决方案1】:

我遇到了同样的错误。
当时,我用 .NET 4.5 替换了 .NET 4。
之后,pex运行成功。 请尝试。
http://www.microsoft.com/en-us/download/details.aspx?id=30653

【讨论】:

    【解决方案2】:

    作为一种解决方法,如果不需要,您可以告诉 Pex 不要检测 VisualBasic 程序集。

    将以下行放入 PexAssemblyInfo.cs:

    [assembly: PexInstrumentAssembly("Microsoft.VisualBasic", InstrumentationLevel=PexInstrumentationLevel.Excluded)]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-16
      • 1970-01-01
      • 2015-09-16
      • 2014-10-01
      • 1970-01-01
      相关资源
      最近更新 更多