【问题标题】:SharePoint Behaved Types - Run Pex Explorations error (System.Moles 4.0.0.0)SharePoint 行为类型 - 运行 Pex 探索错误 (System.Moles 4.0.0.0)
【发布时间】:2011-08-16 14:38:02
【问题描述】:

我正在关注关于 pex 和痣的教程 (http://research.microsoft.com/en-us/projects/pex/pexsharepoint.pdf)。它一岁了,但一切都很好,直到我将 Mole 类型更改为 Behaved 类型。一旦我这样做了,'Run Pex Explorations' 命令开始抛出这个异常:

无法加载文件或程序集“System.Moles,Version=4.0.0.0,Culture=neutral,PublicKeyToken=0ae41878053f6703”或其依赖项之一。系统找不到指定的文件。

我尝试了多种解决方案(包括Moles and SharePoint Behaviour types)。我还尝试为 System 4.0.0.0 程序集生成 Moles,但由于多个“找不到合适的方法来覆盖”错误而失败。

我在 pex (0.94) 和 moles (1.0.0.0) 上使用最新版本。有什么解决办法吗?

【问题讨论】:

    标签: sharepoint sharepoint-2010 moles pex


    【解决方案1】:

    以这种方式为系统创建一个痣:

    <Moles xmlns="http://schemas.microsoft.com/moles/2010/">
      <Assembly Name="System" ReflectionOnly="true" />
      <StubGeneration Disable="true" />
    </Moles>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多