Skip to content

This is a sample in various programming languages that demonstrates how developers can use the new Visual Studio setup query API.

License

Notifications You must be signed in to change notification settings

Sarabeth-Jaffe-Microsoft/vs-setup-samples

This branch is 16 commits behind microsoft/vs-setup-samples:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c37bbb0 · Nov 29, 2016

History

16 Commits
Nov 29, 2016
Nov 29, 2016
Nov 29, 2016
Aug 10, 2016
Sep 4, 2016
Aug 10, 2016
Sep 3, 2016
Sep 4, 2016
Nov 29, 2016
Sep 4, 2016

Repository files navigation

Visual Studio Setup Configuration Samples

The included samples show how to use the new setup configuration API for discovering instances of Visual Studio "15".

Visual Studio Instances

You can install multiple instances of Visual Studio with different workloads, or from different channels or versions. The majority of components are now lightweight installs using the same container format as VSIX packages for faster installs and cleaner uninstalls.

This change to the Visual Studio platform requires new ways of discovering Visual Studio where simple registry detection does not provide the flexibility required in many scenarios.

The new setup configuration API provides simple access for native and managed code, as well as a means to output JSON, XML, or other formats for consumption in batch or PowerShell scripts.

Available Packages

The following packages are available on nuget.org that provide access to the setup configuration API.

  • Microsoft.VisualStudio.Setup.Configuration.Native

    Adds the header location and automatically links the library. You only need to add the #include as shown below.

    #include <Setup.Configuration.h>
  • Microsoft.VisualStudio.Setup.Configuration.Interop

    Provides embeddable interop types. If the interop types are embedded you do not need to redistribute additional assemblies. Simply instantiate the SetupConfiguration runtime callable wrapper (RCW) as shown below.

    var configuration = new SetupConfiguration();

Updates

For the most recent updates to these samples, please see https://github.com/microsoft/vs-setup-samples.

About

This is a sample in various programming languages that demonstrates how developers can use the new Visual Studio setup query API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Visual Basic .NET 38.0%
  • C++ 37.6%
  • C# 20.9%
  • C 3.5%