title: How to create NuGet package from class library projects and precompiled views?
body: <p>I'm using MVC 5 on my Visual Studio 2017. My VS solution currently looks like this</p>
  
  <ul>
  <li>Solution
  
  <ul>
  <li>MVC App</li>
  <li>Components (class library)</li>
  <li>Custom view engine (class library)</li>
  </ul></li>
  </ul>
  
  <p>Now I have created models in Components library. 
  These models are used in MVC app views. 
  I have configured MVC App to precompile views during publishing with "Merge all outputs to a single assembly" and marked "Treat as library component".</p>
  
  <p>Components project is referenced to MVC app (to use it in views). Custom view engine is also referenced to MVC app (to mark (in AssemblyInfo) that this library contains custom views).</p>
  
  <p>When I publish MVC app it compile all views to a single library.</p>
  
  <p>But I want to create NuGet package from Components project and the views. How can I do it? Is there any option to automate this?</p>