title: Why do I get an empty folder when trying to publish my MVC project?
body: <p>I recently tried publishing my asp.net project (.NET Framework 4.6.1) to a network location. The project builds as expected, but when it gets to &quot;Publishing folder /...&quot; it just continues without a delay and says the &quot;Web App was published successfully&quot;. However, the target folder is always empty.</p>
  <p>What I tried:</p>
  <ul>
  <li>Clean</li>
  <li>Clone again</li>
  <li>Clone version that worked in the past</li>
  <li>Publish to local folder instead</li>
  </ul>
  <p>When I tried publishing with the CLI I got this error:</p>
  <blockquote>
  <p>dotnet publish -c Test</p>
  <p>Microsoft (R) Build Engine version 17.1.1+a02f73656 for .NET
  Copyright (C) Microsoft Corporation. All rights reserved.</p>
  <p>Determining projects to restore...
  Nothing to do. None of the projects specified contain packages to restore.
  C:\codes\tmp\zlvmint\Source\UeKVerwaltung\UeKVerwaltung.UI.csproj(1734,3): error MSB4019: The imported project &quot;C:\Program Files\dotnet\sdk\6.0.202\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets&quot; was not found. Confirm that the expression in the Import declaration &quot;C:\Program Files\dotnet\sdk\6.0.202\Microsoft\VisualStudio\v17.0\WebApplications\Microsoft.WebApplication.targets&quot; is correct, and that the file exists on disk.</p>
  </blockquote>
  <p>Do you know what could cause this issue?</p>