Portable Class Library in MVC 4 / Razor with Visual Studio 2012 RC? Portable Class Library in MVC 4 / Razor with Visual Studio 2012 RC? asp.net asp.net

Portable Class Library in MVC 4 / Razor with Visual Studio 2012 RC?


In the Views\Web.config file, add the following code under the <system.web> section:

<compilation debug="true" targetFramework="4.5">    <assemblies>        <add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />    </assemblies></compilation>

There are a bunch of other assemblies you may also need to reference, depending on what types your portable code is using. You can either add each one as you encounter the error, or add the full list of assemblies in C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\Facades.