-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Update default Razor versions in VS to be 3.0 #13291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
area-blazor
Includes: Blazor, Razor Components
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
bug
This issue describes a behavior which is not expected - a bug.
Done
This issue has been fixed
Tooling
This issue has a tooling impact, which means the execution and release should be in sync with VS rel
Milestone
Comments
NTaylorMullen
pushed a commit
to dotnet/razor
that referenced
this issue
Aug 20, 2019
- Added a `Latest` configuration so we no longer need to look through every file to update the "latest" fallback configuration. - Added understanding for MVC2.2, we default to the 2.1 configuration (there were no Razor changes between the two). dotnet/aspnetcore#13291
This also includes setting the default to 3.0 for the Razor language server: #14305 |
ajaybhargavb
pushed a commit
to dotnet/razor
that referenced
this issue
Sep 24, 2019
- Added a `Latest` configuration so we no longer need to look through every file to update the "latest" fallback configuration. - Added understanding for MVC2.2, we default to the 2.1 configuration (there were no Razor changes between the two). dotnet/aspnetcore#13291
ajaybhargavb
added a commit
to dotnet/razor
that referenced
this issue
Oct 1, 2019
* Default to MVC 3.0 when we can't detect the Razor configuration. - Added a `Latest` configuration so we no longer need to look through every file to update the "latest" fallback configuration. - Added understanding for MVC2.2, we default to the 2.1 configuration (there were no Razor changes between the two). dotnet/aspnetcore#13291 * Set RazorLanguageServer default RazorVersion to 3.0
ajaybhargavb
added a commit
to dotnet/razor
that referenced
this issue
Oct 1, 2019
* Default to MVC 3.0 when we can't detect the Razor configuration. - Added a `Latest` configuration so we no longer need to look through every file to update the "latest" fallback configuration. - Added understanding for MVC2.2, we default to the 2.1 configuration (there were no Razor changes between the two). dotnet/aspnetcore#13291 * Set RazorLanguageServer default RazorVersion to 3.0
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
area-blazor
Includes: Blazor, Razor Components
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
bug
This issue describes a behavior which is not expected - a bug.
Done
This issue has been fixed
Tooling
This issue has a tooling impact, which means the execution and release should be in sync with VS rel
Today when you open a project we assume the Razor version by the suffix of the Razor file (.cshtml -> 2.2 MVC, .razor -> 3.0 MVC). However, when you open a .cshtml file we should start assuming 3.0 MVC (because that's what is released).
I've already done the code bits of this work here: https://github.com/aspnet/AspNetCore-Tooling/tree/nimullen/13291
Just need to verify it actually works in VS and in tests 😄
The text was updated successfully, but these errors were encountered: