Microsoft has announced that vswhere is now available. The vswhere is designed to be a redistributable, single-file executable that can be used in build or deployment scripts to find where Visual Studio – or other products in the Visual Studio family – is located.
For example, users knowing the relative path to MSBuild can find the root of the Visual Studio install and combine the paths to find what they need.
“After feedback on the VSSetup PowerShell module to query Visual Studio 2017 and related products, I’m pleased to say that a native, single-file executable is available on GitHub: vswhere. The VSSetup PowerShell module is also available on GitHub and provides a number of benefits for PowerShell scripts, but build tools and CMake and deployment scripts wanted a simple executable they could redistribute without spawning PowerShell,” revealed Heath Stewart in a blog post.
“You can enumerate instances with optional demands on which products, workloads, and components; and on which versions you require. Results can be printed in a variety of formats – currently colon-delimited plain text and JSON. If the query API isn’t registered, rather than erring no instances are assumed to be installed and results are empty, e.g. an empty array for JSON,” the blog post further stated.
Earlier this month, Microsoft announced that it was going to release Visual Studio 2017 next month during a two-day launch event. The company also released an update to the Visual Studio 2017 Release Candidate containing a new templating engine. According to Microsoft, this engine streamlines the creation of new projects using the “dotnet new” command. The update also contained a feature to enable intelligent code completion while writing SQL called Redgate SQL Prompt.
You must be logged in to post a comment.