I need to have SpecFlow generate NUnit Tests with the RequiresSTA attribute. How can I do that?

有帮助吗?

解决方案

The autogenerated xxx.feature.cs file has a partial class definition. Simply create an xxxFeature.cs with another partial class that has the attribute on it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top