【发布时间】:2019-08-24 19:22:01
【问题描述】:
我正在设置 SPECFLOW BDD 项目,当我构建我的项目时,出现以下错误:
在参考文件夹中:我有“nunit.framework”
严重性代码描述项目文件行抑制状态 错误 CS0234 命名空间“NUnit.Framework”中不存在类型或命名空间名称“TestFixtureSetUpAttributeAttribute”(您是否缺少程序集引用?) SpecFlow Project2 C:\Users\source\repos\SpecFlow Project2\SpecFlow Project2\TestFeature.feature 3 不适用
严重性代码描述项目文件行抑制状态 错误 CS0234 命名空间“NUnit.Framework”中不存在类型或命名空间名称“TestFixtureSetUpAttribute”(您是否缺少程序集引用?) SpecFlow Project2 C:\Users\source\repos\SpecFlow Project2\SpecFlow Project2\TestFeature.feature 3 不适用
严重性代码描述项目文件行抑制状态 错误 CS0234 命名空间“NUnit.Framework”中不存在类型或命名空间名称“TestFixtureTearDownAttributeAttribute”(您是否缺少程序集引用?) SpecFlow Project2 C:\Users\source\repos\SpecFlow Project2\SpecFlow Project2\TestFeature.feature 12 不适用
严重性代码描述项目文件行抑制状态 错误 CS0234 命名空间“NUnit.Framework”中不存在类型或命名空间名称“TestFixtureTearDownAttribute”(您是否缺少程序集引用?) SpecFlow Project2 C:\Users\source\repos\SpecFlow Project2\SpecFlow Project2\TestFeature.feature 12 不适用
【问题讨论】:
-
你引用的是哪个版本的 NUnit?
标签: visual-studio nunit specflow