title: How to build .NET Framework ASP.NET app using dotnet
body: <p>We have a mixture of ASP.NET Core and .NET Framework ASP.NET apps.  We use a mixture of <code>msbuild</code> and <code>dotnet</code> to build the apps.</p>
  
  <p>I'm trying to go all in on <code>dotnet</code>, but the build always throws an error of:</p>
  
  <blockquote>
    <p>error MSB4019: The imported project "C:\Program
    Files\dotnet\sdk\3.0.100-preview5-011568\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets"
    was not found. Confirm that the path in the  declaration is
    correct, and that the file exists on disk.</p>
  </blockquote>
  
  <p>Right now I'm just trying with a very simple command of <code>dotnet msbuild foo.sln</code>.  No flags or anything being used for now.</p>
  
  <p>I've tried this on multiple ASP.NET (not Core) apps and they all give the same error.</p>