Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to get a live preview of my web project while working on Razor views in Visual Studio 2022 using .net Framework 4.8

I've succesfully use BrowserLink to edit my css and get a live preview on saving the file, but would like that the page refresh itself while changing the HTML in my Razor views.

Is there a way to do it?

This is NOT .net Core It's old regular .net Framework

like image 246
Eduardo Molteni Avatar asked Oct 21 '25 01:10

Eduardo Molteni


1 Answers

You can use Web Live Preview for this. This is a preview feature in VS2022. You can enable this in Tools->Options

enter image description here

After enabling that, close and reopen the view files you want to preview. You should see a Design and Split button.

enter image description here

Then you should get a preview of your project.

enter image description here

This is limited to ASP.NET Framework project for now, we may add support for ASP.NET Core in the future.

like image 101
Sayed Ibrahim Hashimi Avatar answered Oct 22 '25 14:10

Sayed Ibrahim Hashimi