在Visual Studio 2010和.NET 4中使用MSpec亚军
我是MSpec的忠实粉丝,所以很自然地我想用VS2010。我将MSpec runner定义为Visual Studio中的外部工具,以便能够始终将其作为工具栏项目显示。在Visual Studio 2010和.NET 4中使用MSpec亚军
不管怎样,每当我试图用.NET 4.0解决方案,我得到以下错误使用MSpec亚军(mspec.exe):
Could not load file or assembly 'file:///C:\Users\[SOMEUSER]\[SOME_FOLDERS]\bin\Debug\[PROJECT].Specs.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
我仍然可以运行我的规格与ReSharper的5亚军等等这不是什么大戏,但是我不知所措:þ
你们有什么想法可以解决问题吗?除了重新编译整个Mspec源代码作为.NET 4.0解决方案之外,是否还有其他解决方案,我真的不想这么做?
在此先感谢。
Sergi
使用我的net4
分支,其中包含与.NET 4.0兼容的MSpec版本。我们正在努力将这些更改整合到MSpec的主文件中。
http://github.com/agross/machine.specifications/tree/net4
更新:目前的版本是可在Codebetter's TeamCity server(选择来宾登录)
我通过运行带有mspec-clr4.exe
而不是测试修复了这个问题。
谢谢!我希望能从你或Aaron Jensen那里得到答案;) – 2010-05-12 16:20:45
:)我们现在还有一个.NET 4.0 build,可以在http://teamcity.codebetter.com上找到。 – 2010-05-12 22:22:11
此URL是否应该更新?链接被破坏 - 也许https://github.com/agross/machine.specifications? – t3rse 2011-04-27 21:18:34