VSTS build is not generating .msi file using .vdproj

Solution 1:

It wasn't possible until agent image Windows2019 was published. The new image is equipped with an extension for vdproj that is called Microsoft Visual Studio Installer Projects.

Steps:

  1. Add a Command line task
  2. Add there following line: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\devenv.com" MyProjectDir\MySolution.sln /Rebuild Release

Remark: please note to use devenv.com (not devenv.exe). The "com" version outputs build log and errors to the console (standard output).