DeployOnBuild not working with VS2017 MSBuild tools
i installed the VS2017 build tools with vs_buildtools.exe --add Microsoft.VisualStudio.Workload.MSBuildTools --quiet
but now when I build with the installed MSbuild, passing the /p:DeployOnBuild=true, there seems to be no attempt to do any of the config transformation, aspnet compilation, or deployment that happens when i use the v14.0 tools.
what extra magic incantation do i have to do to make this work?
Make sure that you use the proper MSBuild.exe. This: C:Program Files (x86)Microsoft Visual Studio2017BuildToolsMSBuild15.0Bin
Or if IDE (enterprise) installed: C:Program Files (x86)Microsoft Visual Studio2017EnterpriseMSBuild15.0Bin
If configure an MSBUILD step in a TFS server, set the path of the MSBUILD.exe manualy (Advenced/MSBuild/Specify location):
Using this: C:Program Files (x86)MSBuild15.0Bin
will cause that no deployment package created.
链接地址: http://www.djcxy.com/p/38830.html