Compilation Error of C# 7.1 code in Razor view with .NET Core 2.0
Issue
When writing C# 7.1 code in Razor view page with rh-dotnet20 (.NET Core 2.0), got a compilation error when dotnet publish or dotnet run.
Environment
- .NET Core 2.0 (rh-dotnet20 package)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
