When creating a new project using the "SpecFlow Project" template, which targets .NET Framework 4.7.2, the following compiler error occurs when building:
CSC : error CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.
Steps to Reproduce
Launch Visual Studio 2022 17.5.0
File > New Project > SpecFlow Project > Next
Create
Framework: .NET Framework 4.7.2
Test Framework: MSTest
Uncheck "Add FluentAssertions library"
Create
Build the solution
Notice the following compiler error occurs:
CSC : error CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.
I expected the project to build without errors.
SpecFlow for Visual Studio 2022 v2022.1.91.26832 - 2022-12-20
As a work-around, edit the generated project file and add the following within <PropertyGroup><LangVersion>latest</LangVersion>
Used Visual Studio
Visual Studio 2022
Are the latest Visual Studio updates installed?
Yes
Issue Description
When creating a new project using the "SpecFlow Project" template, which targets .NET Framework 4.7.2, the following compiler error occurs when building:
CSC : error CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.
Steps to Reproduce
Notice the following compiler error occurs:
CSC : error CS8630: Invalid 'nullable' value: 'Enable' for C# 7.3. Please use language version '8.0' or greater.
I expected the project to build without errors.
SpecFlow for Visual Studio 2022 v2022.1.91.26832 - 2022-12-20
As a work-around, edit the generated project file and add the following within
<PropertyGroup>
<LangVersion>latest</LangVersion>