Why can't Visual Studio preview MVC Razor View (.cshtml) pages similar to asp/aspx pages?
Date : March 29 2020, 07:55 AM
it fixes the issue It is indeed just a case of Razor being so new. No doubt preview will work with Razor in a future version (who knows, perhaps a service pack to 2010 will add this). However, as @marcind points out, this is speculation on my side...
|
Visual Studio 2019 loses focus when editing code
Date : March 29 2020, 07:55 AM
wish of those help It was caused by an extension as @Alex K. mentioned. (Perforce not yet made a vs 2019 plugin) Update they made one.
|
Some Razor Views are not Being Compiled on Publish in Visual Studio 2019
Tag : chash , By : Xander
Date : March 29 2020, 07:55 AM
I wish this helpful for you I stumbled onto an issue on the AspNetCore repository and it turns out this is a tooling issue. Unfortunately, it seems to be low in the priority list even though it can be a detrimental problem. Anyway, the OP of the issue gave me an idea, which was to delete the folder with the published cshtml files and then recycle the apppool to for rediscovery of the compiled views.
|
How to disable html angular attribute suggestions in Visual Studio 2019?
Tag : html , By : Webtoad
Date : March 29 2020, 07:55 AM
To fix the issue you can do Step 1: Save a backup copy of C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Microsoft\Web Tools\Languages\Schemas\HTML\SchemaCatalog.xml (just in case) Step 2: Edit the above file to delete the following element: <schema File="angular.xsd" FriendlyName="AngularJS"
Uri="http://schemas.microsoft.com/intellisense/angular" IsSupplemental="true" CustomPrefix="ng-" />
|
Razor views using in Visual Studio 2019 are not updating
Tag : html , By : jbcrail
Date : September 28 2020, 04:00 AM
wish helps you The problem seems to be a bug in visual studio. Here is a work around: 1) Add the NuGet package Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation services.AddControllersWithViews();
services.AddControllersWithViews().AddRazorRuntimeCompilation();
|