I need some guidance on how to have SpecFlow installed on my Visual Studio 2010 development machine which is also leveraged for SharePoint 2010 development.
The .feature extensions causes some bad behavior...
I need some guidance on how to have SpecFlow installed on my Visual Studio 2010 development machine which is also leveraged for SharePoint 2010 development.
The .feature extensions causes some bad behavior...
我刚刚发布了解决此问题的 SpecFlow 版本。您可以在这篇文章中获得更多信息。
为了解决这个问题,我必须做的是下载源代码并将功能文件的扩展名更改为 .sfeature。
我认为这里的问题可能是 SharePoint 2010 和 SpecFlow 使用了.feature
文件扩展名。我对此进行了一些研究,发现了一个关于类似问题的 SpecFlow Google 组查询。给有问题的用户的答案是:
您好,我相信您比我更了解 SharePoint 项目。你有什么概念性的想法可以解决这个冲突吗?哪些部分是冲突的,语法着色还是生成?SharePoint“.feature”文件是否也可以放在普通的c#/vbnet项目中?
手动解决方法的提示:关闭生成器对 .feature 文件的自动识别 : - 将“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Generators{FAE04EC1-301F-”处的键“.feature”重命名为“.featureX” 11D3- BF4B-00C04F79EFBC}.feature"(用于 C# 项目)
- 您仍然可以通过为文件的“自定义工具”属性指定“SpecFlowSingleFileGenerator”来手动设置生成以关闭语法着色:
- 删除(或重命名)位于 C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\TechTalk\SpecFlow Br, Gaspar 的快捷方式
也许您可以尝试上面提到的注册表黑客,这可能会让您将 SPecFLow 与 SharePoint 一起使用?
原始线程可以在这里找到:
http://groups.google.com/group/specflow/browse_thread/thread/4e6a80f3aa3624c2?pli=1