<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Asp.net Vnext on Strathweb. A free flowing tech monologue.</title>
    <link>https://www.strathweb.com/categories/asp.net-vnext/</link>
    <description>Recent content in Asp.net Vnext on Strathweb. A free flowing tech monologue.</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 12 Feb 2015 11:05:48 +0000</lastBuildDate><atom:link href="https://www.strathweb.com/categories/asp.net-vnext/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Overriding filters in ASP.NET MVC 6</title>
      <link>https://www.strathweb.com/2015/02/overriding-filters-asp-net-mvc-6/</link>
      <pubDate>Thu, 12 Feb 2015 11:05:48 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2015/02/overriding-filters-asp-net-mvc-6/</guid>
      <description>&lt;p&gt;There are many posts out there, including on this blog, about &lt;em&gt;what&amp;rsquo;s in&lt;/em&gt; ASP.NET MVC 6 and how to use it. This one however, will be about &lt;em&gt;what&amp;rsquo;s not in&lt;/em&gt; the framework, or at least not in the same way as you might be used to it from MVC 5/Web API 2 - the ability to override filters. I was recently working on an MVC 6 project and ran into this exact problem.&lt;/p&gt;
&lt;p&gt;In MVC 5 and Web API 2, there was a &lt;a href=&#34;https://www.strathweb.com/2013/06/overriding-filters-in-asp-net-web-api-vnext/&#34;&gt;built in way to do it&lt;/a&gt;, and even though it was not very extensible, it proved to be very handy (at least for me).&lt;/p&gt;
&lt;p&gt;IN MVC 6, these override filters are gone, so at first glance, filter overriding is quite difficult. In reality, that&amp;rsquo;s not the case, you just need to know what to do - let&amp;rsquo;s have a look.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>ASP.NET MVC 6 attribute routing – the [controller] and [action] tokens</title>
      <link>https://www.strathweb.com/2015/01/asp-net-mvc-6-attribute-routing-controller-action-tokens/</link>
      <pubDate>Wed, 07 Jan 2015 12:28:29 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2015/01/asp-net-mvc-6-attribute-routing-controller-action-tokens/</guid>
      <description>&lt;p&gt;When working with attribute routing in Web API 2 or MVC 5 it was relatively easy to get the route to the controller and the controller name out of sync. That was because the route always had to be specified as a string, so whenever you changed the name of the controller you would always have to change the string in the route attribute too.&lt;/p&gt;
&lt;p&gt;That could be easily forgotten - especially if you use refactoring tools of Visual Studio or an external refactoring plugin.&lt;/p&gt;
&lt;p&gt;This issue has been addressed in MVC6 with a tiny addition - the introduction of &lt;em&gt;[controller]&lt;/em&gt; ad &lt;em&gt;[action]&lt;/em&gt; tokens into attribute routing.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Razor views pre-compilation with ASP.NET 5 and MVC 6</title>
      <link>https://www.strathweb.com/2014/12/razor-views-pre-compilation-asp-net-5-mvc-6/</link>
      <pubDate>Fri, 12 Dec 2014 10:36:22 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2014/12/razor-views-pre-compilation-asp-net-5-mvc-6/</guid>
      <description>&lt;p&gt;In previous versions of MVC framework, running on top of the &amp;ldquo;classic&amp;rdquo; ASP.NET runtime, it was quite common for developers to switch view compilation on, so that the views get compiled upfront, allowing you to see any errors at compile time, rather than at runtime.&lt;/p&gt;
&lt;p&gt;This was done by a simply adding &lt;em&gt;&lt;MvcBuildViews&gt;true&lt;/MvcBuildViews&gt;&lt;/em&gt; to your &lt;em&gt;csproj&lt;/em&gt; file.&lt;/p&gt;
&lt;p&gt;Given that everything changes in the new ASP.NET 5 world, how would you do it now? Let&amp;rsquo;s explore.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Formatters in ASP.NET MVC 6</title>
      <link>https://www.strathweb.com/2014/11/formatters-asp-net-mvc-6/</link>
      <pubDate>Mon, 17 Nov 2014 12:01:30 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2014/11/formatters-asp-net-mvc-6/</guid>
      <description>&lt;p&gt;One of the key concepts in HTTP API development is the notion of content negotiation (conneg). ASP.NET Web API provided first class support for content negotiation through the use of &lt;em&gt;MediaTypeFormatters&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;While MVC 6 is a de facto brand new framework, rebuilt from scratch, the majority of concepts from MVC 5 and Web API 2 have naturally been brought forward, and conneg done through formatters are one of them.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s have a look at formatters in MVC6.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Using ConfigR as a Configuration Source in ASP.NET vNext</title>
      <link>https://www.strathweb.com/2014/10/using-configr-configuration-source-asp-net-vnext/</link>
      <pubDate>Tue, 28 Oct 2014 14:37:09 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2014/10/using-configr-configuration-source-asp-net-vnext/</guid>
      <description>&lt;p&gt;One of the cool things about ASP.NET vNext is that it introudces a &lt;a href=&#34;https://github.com/aspnet/Configuration&#34;&gt;configuration abstraction&lt;/a&gt;, &lt;em&gt;Microsoft.Framework.ConfigurationModel&lt;/em&gt; over your application&amp;rsquo;s configuration.&lt;/p&gt;
&lt;p&gt;This is going to replace the old school, limiting approach of forcing you to work with XML configuration only through the &lt;em&gt;System.Configuration&lt;/em&gt; classes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://twitter.com/loudej&#34;&gt;Louis DeJardin&lt;/a&gt; has blogged about the ideas behind the isolation of Configuration in his &lt;a href=&#34;http://whereslou.com/2014/05/23/asp-net-vnext-moving-parts-iconfiguration/&#34;&gt;blog post&lt;/a&gt;. In the meantime, let&amp;rsquo;s have a look at how we could enable a &lt;a href=&#34;https://github.com/config-r/config-r&#34;&gt;ConfigR&lt;/a&gt;-based configuration too.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>POCO controllers in ASP.NET vNext</title>
      <link>https://www.strathweb.com/2014/06/poco-controllers-asp-net-vnext/</link>
      <pubDate>Wed, 11 Jun 2014 09:34:38 +0000</pubDate>
      
      <guid>https://www.strathweb.com/2014/06/poco-controllers-asp-net-vnext/</guid>
      <description>&lt;p&gt;One of the very cool features of the vNext of ASP.NET MVC (a unified framework set to succeed MVC, Web API and Web Pages) is the ability use POCO classes as controllers. No base class, no interface to implement, 100% convention.&lt;/p&gt;
&lt;p&gt;Let&amp;rsquo;s look a little bit into that.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
