<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Razor Pages on CodingBlast</title><link>https://codingblast.com/tags/razor-pages/</link><description>Recent content in Razor Pages on CodingBlast</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 01 Feb 2018 10:57:53 +0000</lastBuildDate><atom:link href="https://codingblast.com/tags/razor-pages/index.xml" rel="self" type="application/rss+xml"/><item><title>ASP.NET Core - InvalidOperationException: Cannot find compilation library location for package 'Microsoft.Win32.Registry'</title><link>https://codingblast.com/asp-net-core-invalidoperationexception-cannot-find-compilation-library-location-package-microsoft-win32-registry/</link><pubDate>Thu, 01 Feb 2018 10:55:22 +0000</pubDate><guid>https://codingblast.com/asp-net-core-invalidoperationexception-cannot-find-compilation-library-location-package-microsoft-win32-registry/</guid><description>&lt;h2 id="tldr"&gt;TL;DR&lt;/h2&gt;
&lt;p&gt;Add following line to your &lt;strong&gt;.csproj&lt;/strong&gt; file:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;MvcRazorExcludeRefAssembliesFromPublish&gt;false&lt;/MvcRazorExcludeRefAssembliesFromPublish&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;I was publishing a project I am working on to web server (Linux) and I had an issue with Razor Pages.&lt;/p&gt;
&lt;p&gt;However, it seems that this error occurs only when you precompile your Razor views (MVC views, Razor Pages). Why would you do that? Well, precompiling your views results in a smaller published bundle and faster startup time.&lt;/p&gt;</description></item><item><title>ASP.NET Core Razor Pages - Handler Methods</title><link>https://codingblast.com/asp-net-core-razor-pages-handlers/</link><pubDate>Sat, 29 Jul 2017 07:44:43 +0000</pubDate><guid>https://codingblast.com/asp-net-core-razor-pages-handlers/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In the &lt;a href="https://codingblast.com/asp-net-core-razor-pages/"&gt;last post&lt;/a&gt;, we talked about &lt;a href="https://codingblast.com/asp-net-core-razor-pages/"&gt;Razor Pages&lt;/a&gt;. Today we will talk more about handlers.&lt;/p&gt;
&lt;p&gt;We saw that we could have our code and model either in a &lt;em&gt;.cshtml&lt;/em&gt; file or inside of &lt;em&gt;code behind&lt;/em&gt;file that matches the &lt;em&gt;.cshtml&lt;/em&gt; - &lt;em&gt;&lt;strong&gt;.cshtml.cs&lt;/strong&gt;&lt;/em&gt; file.&lt;/p&gt;</description></item><item><title>ASP.NET Core Razor Pages – Introduction</title><link>https://codingblast.com/asp-net-core-razor-pages/</link><pubDate>Sun, 23 Jul 2017 13:25:25 +0000</pubDate><guid>https://codingblast.com/asp-net-core-razor-pages/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;With ASP.NET Core 2 around the corner, the hottest new thing that we are getting is Razor Pages. In one of the &lt;a href="https://codingblast.com/asp-net-core-2-preview/"&gt;previous posts&lt;/a&gt;, we briefly mentioned ASP.NET Core Razor Pages.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Razor Pages is a new feature of ASP.NET Core that makes coding page-focused scenarios easier and more productive.&lt;/p&gt;</description></item></channel></rss>