Visual Studio 2022 Extension for .cshtml files.

Paul van Vulpen 0 Reputation points
2023-11-17T13:02:16.5+00:00

I'm working on a visual studio 2022 Extension.

But as soon as i import it inside the visual studio 2022 "Tools" -> "Code Snippet Manager" it will work in files like: HomeController.cs but not in home.cshtml (All .cshtml files).

What kind of <Code Language="" do i need to put in here to get it working in .cshtml files. I have tried 'html' and "razor" but that didn't work.

Screenshot 2023-11-17 134902

Developer technologies | Visual Studio | Extensions
Developer technologies | Visual Studio | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.