Skip to content

Intellisense Errors in VS2022 #186

Answered by daveaglick
nsrahmad asked this question in Q&A
Discussion options

You must be logged in to vote

You're in luck! For background, the problem is that the Visual Studio Razor engine builds Razor pages in the background and makes a bunch of assumptions about what sort of base class is being used for the Razor pages, what namespaces are available, etc. This works for like 99% of the typical Razor uses via ASP.NET. Obviously Statiq isn't ASP.NET, and on top of that, Statiq does some customization of that Razor process that the built-in Visual Studio design-time Razor engine has no idea about (such as changing the Razor view base class).

Thankfully there actually is a way to tell the Visual Studio Razor Intellisense engine about the correct namespace imports and base Razor class that Stati…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nsrahmad
Comment options

Answer selected by nsrahmad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants