title: .NET Core deployment to IIS error for the standard .NET Core web application
body: <p>I am trying to deploy a .NET Core 2.0 application to IIS. This is just the standard .NET Core web application that is created when starting a new project. The project builds and run just fine. However, when trying to publish to IIS via web deploy, I get the following error:</p>
  <pre><code>3/25/2018 3:45:08 PM
  System.AggregateException: One or more errors occurred. ---&gt; System.Exception: Publish failed due to build errors. Check the error list for more details.
     --- End of inner exception stack trace ---
     at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
     at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
     at Microsoft.VisualStudio.Web.Publish.PublishService.VsWebProjectPublish.&lt;&gt;c__DisplayClass40_0.&lt;PublishAsync&gt;b__2()
     at System.Threading.Tasks.Task`1.InnerInvoke()
     at System.Threading.Tasks.Task.Execute()
  --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at Microsoft.VisualStudio.ApplicationCapabilities.Publish.ViewModel.ProfileSelectorViewModel.&lt;RunPublishTaskAsync&gt;d__88.MoveNext()
  ---&gt; (Inner Exception #0) System.Exception: Publish failed due to build errors. Check the error list for more details.&lt;---
  
  ===================
  </code></pre>
  <p>Am I missing something?</p>