GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.servicestack.net — Razor Notes Razor NotesVS.NET Intelli-sense for self-hosting projectsVS.NET Intelli-sense relies on the Unfortunately as VS.NET's Razor intelli-sense is coupled to ASP.NET MVC, it requires a dummy Web.config in your self-hosted projects which just contains a copy of the Razor configuration in your App.config (which was originally populated when adding the ServiceStack.Razor NuGet Package to your project). The Web.config is otherwise benign and has no other effect other than enabling VS.NET's intelli-sense. Intelli-sense for View ModelsThe
Web Configuration for RazorAll ASP.NET Razor VS.NET Templates in ServiceStackVS uses the optimal
The ServiceStack.Razor NuGet package uses the official Microsoft.AspNet.Razor but to minimize errors in VS.NET's Razor editor, the ServiceStack' Razor templates also reference MVC's Microsoft.AspNet.WebPages NuGet package which is only used to assist Razor intellisense as ServiceStack doesn't use or need itself. To remove the last designer error Content pages can inherit:
And Typed View Pages can inherit:
Which also doesn't affect the pages behavior, but can remove the final design-time warning showing up in VS.NET's error list. Only configuration section usedServiceStack doesn't use the ASP.NET WebPages implementation itself, the configuration is primarily included to enable VS.NET intelli-sense and provide a way to configure the default namespaces added to Razor pages. This can also be done in code by adding to the On This Page
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |