title: How to find out the command Visual Studio sends to MSBuild?
body: <p>I'm trying to use MSBuild in a CI/CD engine, and I need to publish an ASP.NET Core MVC application using it.</p>
  
  <p>I want to know what Visual Studio sends to the MSBuild when we build/publish a project, and send that exactly to MSBuild.</p>
  
  <p>Is there anyway that we can find out the command Visual Studio 2017 sends to MSBuild to build/publish a .NET Core project?</p>
  
  <p><strong>Update:</strong> To those who say that VS uses MSBuild API, simply kill all <code>MSBuild.exe</code> processes, then build a project/solution via VS, and you'll see that <code>MSBuild.exe</code> is coming back into the processes list (viewed via Task Manager). So, what's the explanation? If VS uses API, then that API should run inside <code>devenv.exe</code> process and no instance of <code>MSBuild.exe</code> should appear inside Task Manager. Right?</p>
  
  <p><strong>Update 2</strong>: Does <code>devenv.exe</code> expose its publish functionality?</p>