title: Razor Class Library doesn't include Views in DLL
body: <p>I have an ASP.Net Core MVC application (written in F#) using <code>.Net Core 3</code> that has the views in an external Razor Class Library (because you can't mix C# and F#), however, when I run the application the views are not found.</p>
  
  <p>The MVC application does have a reference to the class-library however when I looked at the class-library DLL using dotPeek it did not have any compiled views in it:</p>
  
  <p><a href="https://i.stack.imgur.com/U5ioh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U5ioh.png" alt="dotPeek dissasembly"></a></p>
  
  <p>This is the <code>csproj</code> of the Razor class library:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Project Sdk="Microsoft.NET.Sdk.Razor"&gt;
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp3.0&lt;/TargetFramework&gt;
      &lt;AddRazorSupportForMvc&gt;true&lt;/AddRazorSupportForMvc&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;FrameworkReference Include="Microsoft.AspNetCore.App" /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include="..\SportsStore.Infrastructure\SportsStore.Infrastructure.fsproj" /&gt;
      &lt;ProjectReference Include="..\SportsStore.Models\SportsStore.Models.fsproj" /&gt;
      &lt;ProjectReference Include="..\SportsStore.TagHelpers\SportsStore.TagHelpers.fsproj" /&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>And there <strong>are</strong> Views in the project:</p>
  
  <p><a href="https://i.stack.imgur.com/Ax72s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ax72s.png" alt="Razor class libary Solution Explorer"></a></p>
  
  <p>I am guessing that the <code>csproj</code> file is most likely wrong, but how can I fix it?</p>