SpecFlow NUnit RequiresSTA attribute

550 views Asked by At

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

1

There are 1 answers

0
AlSki On BEST ANSWER

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.