You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MVC F# project build with warning "FS0044: This construct is deprecated", should update the project template. #69113
dotnet new mvc -lang F# -o MVCFS
cd MVCFS
dotnet build
Actual Result
There is a warning FS0044: This construct is deprecated
Log:
C:\Users\v-zhajin\MVCFS\Program.fs(29,14): warning FS0044: This construct is deprecated.
Razor runtime compilation is obsolete and is not recommended for production scenarios.
For production scenarios, use the default build time compilation. For development scenarios, use Hot Reload instead.
For more information, visit https://aka.ms/aspnet/deprecate/003.
Area:area-mvc (F# MVC project template build warning, already labeled) Type:Bug (F# template emits an unintended deprecation warning after a related change; does not repro in the equivalent C# template)
Regression Info
Previously working version: .NET 11.0 RC 1
Broken since: .NET 11.0 RC 2
The F# MVC template (dotnet new mvc -lang F#) now emits FS0044: This construct is deprecated referencing Razor runtime compilation obsoletion, which did not occur in RC 1. The reporter links this to Mark AddRazorRuntimeCompilation methods obsolete #68841. The C# MVC template does not exhibit the warning.
Activity
jinzhao1127 commentedon Sep 8, 2026
@Youssef1313 , could you take a look?
MihuBot commentedon Sep 8, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
github-actions commentedon Sep 8, 2026
Triage Summary
Area:
area-mvc(F# MVC project template build warning, already labeled)Type:
Bug(F# template emits an unintended deprecation warning after a related change; does not repro in the equivalent C# template)Regression Info
dotnet new mvc -lang F#) now emitsFS0044: This construct is deprecatedreferencing Razor runtime compilation obsoletion, which did not occur in RC 1. The reporter links this to Mark AddRazorRuntimeCompilation methods obsolete #68841. The C# MVC template does not exhibit the warning.Potential Duplicates
jinzhao1127 commentedon Sep 11, 2026
Verify this bug on the latest .NET 11 RC2[
11.0.100-rc.2.26460.105], it was fixed now. But found a new issue #69220 due this change