title: .NET Core MVC view components in desktop app: Component.InvokeAsync can't find view
body: <p>I've built a website in ASP.NET Core, and it works fine.</p>
  <p>Now I'm trying to launch my ASP.NET Core Web App inside a Windows Chromium Desktop App, following the instructions <a href="https://docs.servicestack.net/netcore-windows-desktop#launch-net-core-app-inside-a-windows-chromium-desktop-app" rel="nofollow noreferrer">here</a>.</p>
  <p>I run <code>app MyMvcApp.dll</code>. The app launches, but attempts to load a view for a view component (<code>ProgressViewComponent</code>), and throws the error:</p>
  <blockquote>
  <p>InvalidOperationException: The view 'Components/Progress/Default' was not found. The following locations were searched:
  /Views/RawDataFileCopy/Components/Progress/Default.cshtml
  /Views/Shared/Components/Progress/Default.cshtml
  /Pages/Shared/Components/Progress/Default.cshtml</p>
  </blockquote>
  <p>The line that failed:</p>
  <pre><code>@await Component.InvokeAsync(&quot;Progress&quot;, new { processId = Model.ProcessId, processName = Model.ProcessName })
  </code></pre>
  <p>In Visual Studio, in my ASP.NET Core project, I have the file at:</p>
  <pre><code>Views/Shared/Components/Progress/Default.cshtml
  </code></pre>
  <p>This works fine when I run the web app in a browser.</p>
  <p>Interestingly, I've noticed that the compiler creates <code>MyMvcApp.Views.dll</code>, but if I decompile it I can't actually see the <code>Progress/Default</code> view, so maybe the problem is that it's not compiling the view correctly?</p>
  <p>Any thoughts would be appreciated.</p>