Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2008 使SpecFlow/Cuke4V理解非英语的.feature文件_Visual Studio 2008_Specflow - Fatal编程技术网

Visual studio 2008 使SpecFlow/Cuke4V理解非英语的.feature文件

Visual studio 2008 使SpecFlow/Cuke4V理解非英语的.feature文件,visual-studio-2008,specflow,Visual Studio 2008,Specflow,我试图在VisualStudio2008项目中使用SpecFlow来定义可执行的验收测试。开发团队决定使用我们的母语德语作为功能文件的语言,因此我们在测试项目中添加了以下配置片段: <configuration> <configSections> <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.Spec

我试图在VisualStudio2008项目中使用SpecFlow来定义可执行的验收测试。开发团队决定使用我们的母语德语作为功能文件的语言,因此我们在测试项目中添加了以下配置片段:

<configuration>
  <configSections>
    <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
  </configSections>
  <specFlow>
    <language feature="de-DE" tool="" />
  </specFlow>
</configuration>
但是1 Cuke4VS没有突出功能和场景的Funktionalität或Szenario关键字德语,2 SpecFlow自定义工具抛出错误:

语法错误,应为:功能:标记

当我使用英语术语功能和场景时,一切都很好

我还尝试在.feature文件的顶部添加一个标记语言:de de,但不幸的是,这似乎没有任何帮助:-语法高亮显示仍然不存在,自定义工具仍然抛出错误


我错过了什么?我甚至可以在VS2008中让它正常工作吗?现在还不能升级到2010年,这太奇怪了。。。。在多次重新启动Visual Studio 2008、卸载Cuke4VS以支持SpecFlow 1.8.1中内置的VS 2008集成以及重新启动我的开发机器之后,现在德语功能的语法高亮显示工作正常,SpecFlow的自定义工具现在可以正确地将这些德语功能转换为*.cs代码隐藏文件

但是现在:那些在文件顶部带有“en-en前缀”的英文功能不再正确高亮显示

相当可疑-整个VS 2008的整合似乎有点不稳定。。。期待VS2010

Funktionalität: Abrechnung durchführen
    Um die angefallenen Kosten zu verrechnen
    Als Sachberabeiter
    Will ich eine Abrechnung durchführen

    Szenario: erste Abrechnung erstellen
        Angenommen es existiert noch keine Abrechnung
        Wenn ich eine neue Abrechnung erstelle
        Dann sollte die Abrechnung das aktuelle Jahr abdecken