Is embedded razor coding the only option with webmatrix?

Or is it also compatible with asp.net or asp.net mvc?

+4
source share
3 answers

Check out this great post from Dave Ebbo: http://blogs.msdn.com/b/davidebb/archive/2010/07/07/how-webmatrix-razor-asp-net-web-pages-and-mvc-fit- together.aspx

WebMatrix is ​​a truly instrumental story that has a stack (IIS Express, SQL CE 4 and Razor) that allows you to create a new breed of page or ASP.NET site. You can not only use WebMatrix to edit and support traditional ASPX pages (a la Forms or MVC), but you can use WebMatrix to edit PHP files, work with MySQL databases and manage open source PHP applications (WordPress, Joomla etc.) ..)

Bottom line: Embedded with Razor is not the only option when using WebMatrix, although by default it is created when new pages are created.

+4
source

WebMatrix only supports a folder-based project (i.e. WebSite, not a web application project). Because of this, ASP.NET MVC is not supported.

However, you can have clean .cs files that you can reference from your .cshtml files. Just leave them in the App_Code folder.

+3
source

Scott Guthrie's blog post shows examples of inline code with both a razor and regular asp.net tags. Webmatrix is ​​simply a "work environment" - it allows you to edit ASP.Net and ASP.Net MVC pages, but does not exclude them.

As far as I understand, the razor syntax is simply built on top of the existing ASP.Net parsing, and you can use it exclusively or mix it with old ASP.Net files without any problems. I could disconnect from this.

+2
source

Source: https://habr.com/ru/post/1314892/


All Articles