I'm trying to use MSBuild in a CI/CD engine, and I need to publish an ASP.NET Core MVC application using it.
I want to know what Visual Studio sends to the MSBuild when we build/publish a project, and send that exactly to MSBuild.
Is there anyway that we can find out the command Visual Studio 2017 sends to MSBuild to build/publish a .NET Core project?
Update: To those who say that VS uses MSBuild API, simply kill all MSBuild.exe
processes, then build a project/solution via VS, and you'll see that MSBuild.exe
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 devenv.exe
process and no instance of MSBuild.exe
should appear inside Task Manager. Right?
Update 2: Does devenv.exe
expose its publish functionality?