.NET Blog

Free. Cross-platform. Open source. A developer platform for building all your apps.

Razor support in Visual Studio Code now in Preview

Earlier this week we released a preview of support for working with Razor files (.cshtml) in the C# extension for Visual Studio Code (1.17.1). This initial release introduces C# completions, directive completions, and basic diagnostics (red squiggles for errors) for ASP.NET Core projects. Prerequisites To use this preview of Razor support in...

Razor Improvements – Feedback Wanted

Recent releases of Visual Studio 2017 focus greatly on improving the experience of working with Razor. The improvements address the most pressing customer-facing issues like formatting changes and providing general performance and reliability for IntelliSense. Now that the fixes and enhancements are publicly available, we would like to learn more about your experience with the Razor editor.

ASP.NET Core 2.1.0-preview1: Razor UI in class libraries

One frequently requested scenario that ASP.NET Core 2.1 improves is building UI in reusable class libraries. With ASP.NET Core 2.1 you can package your Razor views and pages (.cshtml files) along with your controllers, page models, and data models in reusable class libraries that can be packaged and shared. Apps can then include pre-built UI ...

ASP.NET MVC 5.2.3, Web Pages 3.2.3 and Web API 5.2.3 Beta releases

While the MVC team is working hard on MVC 6 as part of the ASP.NET 5 effort, we also keep working on the 5.x packages. Today we are releasing a Beta of ASP.NET MVC 5.2.3, Web Pages 5.2.3 and Web API 5.2.3.This preview release addresses 12 issues. Here is the full list.Highlight of issues fixedWeb API Issues2092 Significant performance ...

ASP.NET MVC 5 Lifecycle Document Published

Fresh out of the oven is a PDF document that charts the lifecycle of every ASP.NET MVC 5 application. Many of you have requested this document over the years and we're glad to finally put it in your hands now. You will find the PDF document very similar to the ASP.NET application lifecycle topic in its approach. It's a graphical representation...

Visual Studio 11 Beta Razor editor issue workaround

We found Visual Studio 11 Beta hits a crash bug when editing a Razor page (cshtml/vbhtml) in a MVC4 project or a Razor2 Website if the indenting option for the HTML editor is set to Block instead of Smart. The workaround is to go to Tools->Options->Text Editor->HTML->Tab and change the indenting option to Smart.HTML smart indenting...