Older versions of Visual Studio 2017 will not install in Windows Server 2019 containers

If you try to install Build Tools for Visual Studio 2017 into a Windows Server 2019 or newer container image, such as mcr.microsoft.com/windows/servercore:1809 or mcr.microsoft.com/windows/servercore:ltsc2019, the install will quickly terminate without error and without installing anything. This is due, in part, to changes to the Windows Server container image to reduce size and improve startup… Read more

Workaround for 0x8007007e when trying to to locate an instance of Visual Studio

We are investigating how a particular rare problem occurs that can prevent clients like VSIXInstaller.exe, vswhere.exe, and others from finding any Visual Studio instance that results in an error similar to the following: This is the CLSID for the Visual Studio Installer query API, and despite being registered the COM server DLL is missing. Workaround… Read more

Docker recipes available for Visual Studio Build Tools

Because Docker container images for Visual Studio Build Tools are very large, we have created a repository of “recipes”. These are dockerfiles and, when necessary, supporting scripts are purpose-built for solution types that require certain workloads and even other tools like package managers. I encourage developers and DevOps to take a look and even contribute… Read more

No container image for Build Tools for Visual Studio 2017

After having written documentation about installing Build Tools for Visual Studio 2017 and working with partners to set up validation starting with Visual Studio 2017 Version 15.7, a common question from customers and partners alike is: are you going to publish a container image in a Docker registry? With DockerCon 2018 in full swing, there’s… Read more

vswhere now supports -utf8 to override console code page

A new switch parameter has been introduced to vswhere. You can now pass -utf8 to force output to write text using UTF-8 to the console, though it’s important to note that what the console host does with that encoded can vary greatly. powershell.exe, for example, when redirecting to a file will always encode Unicode regardless… Read more

Updated documentation for Visual Studio Build Tools container

I’ve updated the documentation for building a Docker container image for Visual Studio Build tools based on recent feedback that managed code may fail to run. In the case of MSBuild, you might see an error like, C:\BuildTools\MSBuild\15.0\bin\Roslyn\Microsoft.CSharp.Core.targets(84,5): error MSB6003: The specified task executable “csc.exe” could not be run. Could not load file or assembly… Read more

vswhere now supports -requiresAny to find instances with one or more components installed

The latest release of vswhere.exe supports a new switch parameter, -requiresAny (case-insensitive). This switch changes the behavior of -requires to return any instances that have one or more workloads or components installed. As Visual Studio continues to add value with more features (including lots of partner content) targeting a wider variety of workloads, we made… Read more