File tree 1 file changed +2
-4
lines changed
src/Mvc/Mvc.Razor.RuntimeCompilation/src 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -211,10 +211,8 @@ private static CSharpParseOptions GetParseOptions(
211
211
212
212
if ( string . IsNullOrEmpty ( dependencyContextOptions . LanguageVersion ) )
213
213
{
214
- // During preview releases, Roslyn assumes Preview language version for netcoreapp3.0 targeting projects.
215
- // We will match the behavior if the project does not specify a value for C# language (e.g. if you're using Razor compilation in a F# project).
216
- // Prior to 3.0 RTM, this value needs to be changed to "Latest". This is tracked via https://github.com/aspnet/AspNetCore/issues/9129
217
- parseOptions = parseOptions . WithLanguageVersion ( LanguageVersion . Preview ) ;
214
+ // If the user does not specify a LanguageVersion, assume CSharp 8.0. This matches the language version Razor 3.0 targets by default.
215
+ parseOptions = parseOptions . WithLanguageVersion ( LanguageVersion . CSharp8 ) ;
218
216
}
219
217
else if ( LanguageVersionFacts . TryParse ( dependencyContextOptions . LanguageVersion , out var languageVersion ) )
220
218
{
You can’t perform that action at this time.
0 commit comments