Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13887

Use `vswhere` for better Visual Studio and MSBuildTools detection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • cordova-windows
    • None

    Description

      Microsoft added `vswhere` to the default install of Visual Studio 2017:
      https://github.com/Microsoft/vswhere
      https://github.com/Microsoft/vswhere/wiki/Find-MSBuild
      https://docs.microsoft.com/en-us/visualstudio/install/tools-for-managing-visual-studio-instances
      https://blogs.msdn.microsoft.com/heaths/2017/04/21/vswhere-is-now-installed-with-visual-studio-2017/

      We already use it in `appveyor.yml` to debug output these paths for the CI environment. It would be handy to also use this simple command in `MSBuildTools.js` and similar code instead of what is currently there (which is really confusing and party bad).

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            Sujan12 Jan Piotrowski (janpio)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: