diff --git a/input/guide/content-and-data/template-languages/razor.md b/input/guide/content-and-data/template-languages/razor.md index 685e0a06..d251bc8a 100644 --- a/input/guide/content-and-data/template-languages/razor.md +++ b/input/guide/content-and-data/template-languages/razor.md @@ -24,6 +24,12 @@ Because Statiq uses a custom Razor base page, the Razor Intellisense engine does @inherits StatiqRazorPage ``` +Additionally, if you're using JetBrains Rider or ReSharper, update the `Sdk` attribute of your `.csproj` file to `Microsoft.NET.Sdk.Web` as shown below. + +``` + +``` + ## View Imports Model **Important note:** if you do create a `_ViewImports.cshtml` file, it will also instruct the Statiq Razor engine during generation. Generally this isn't a problem since the file is just reiterating what Statiq is doing behind the scenes. However, if any of your partial views change the model with a `@model` directive, the `@inherits` directive in the `_ViewImports.cshtml` file will take precedence and the model you define in the partial view will not work. In this case you should define your partial model using a full `@inherits` directive. For example, `@model int` should become `@inherits StatiqRazorPage`.