title: How to render a partial view located in an application part (DLL) into main asp.net core 2.2 project
body: <p>I have an <code>asp.net core 2.2</code> project with its controllers and views. Due to project requirements, I needed to create a Razor Class Library to separate some cshtml files and controllers from the main project. Look below the project and folder structure:</p>
  <p><a href="https://i.stack.imgur.com/bzAtA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bzAtA.png" alt="enter image description here" /></a></p>
  <p>I'm facing issues when I need to load a partial view located in that Razor Class Library into a view located in the main project:</p>
  <p><a href="https://i.stack.imgur.com/SnylE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SnylE.png" alt="enter image description here" /></a></p>
  <p>The app throws 500 error:</p>
  <blockquote>
  <p>An unhandled exception occurred while processing the request.
  InvalidOperationException: The partial view '_ComponenteDivisionPoliticaPartial' was not found. The following locations were searched:
  /Areas/Administracion/Views/GeneralPersonas/_ComponenteDivisionPoliticaPartial.es-CO.cshtml
  /Areas/Administracion/Views/GeneralPersonas/_ComponenteDivisionPoliticaPartial.es.cshtml
  /Areas/Administracion/Views/GeneralPersonas/_ComponenteDivisionPoliticaPartial.cshtml
  /Areas/Administracion/Views/Shared/_ComponenteDivisionPoliticaPartial.es-CO.cshtml
  /Areas/Administracion/Views/Shared/_ComponenteDivisionPoliticaPartial.es.cshtml
  /Areas/Administracion/Views/Shared/_ComponenteDivisionPoliticaPartial.cshtml
  /Views/Shared/_ComponenteDivisionPoliticaPartial.es-CO.cshtml
  /Views/Shared/_ComponenteDivisionPoliticaPartial.es.cshtml
  /Views/Shared/_ComponenteDivisionPoliticaPartial.cshtml
  /Pages/Shared/_ComponenteDivisionPoliticaPartial.es-CO.cshtml
  /Pages/Shared/_ComponenteDivisionPoliticaPartial.es.cshtml
  /Pages/Shared/_ComponenteDivisionPoliticaPartial.cshtml
  Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelper.RenderPartialCoreAsync(string partialViewName, object model, ViewDataDictionary viewData, TextWriter writer)</p>
  </blockquote>
  <ul>
  <li>How can I do to reference or use the required partial view?</li>
  <li>Are the static files in <code>wwwroot</code> such as JS files and CSS recognized by the
  Partial View into Razor Class Library?</li>
  </ul>
  <p>Thanks</p>