{"id":22366256,"url":"https://github.com/microsoft/vs-setup-samples","last_synced_at":"2025-07-30T17:30:30.862Z","repository":{"id":37678056,"uuid":"67545808","full_name":"microsoft/vs-setup-samples","owner":"microsoft","description":"This is a sample in various programming languages that demonstrates how developers can use the new Visual Studio setup query API.","archived":false,"fork":false,"pushed_at":"2023-06-02T22:23:24.000Z","size":47,"stargazers_count":88,"open_issues_count":1,"forks_count":29,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-07-26T18:48:27.895Z","etag":null,"topics":["setup","visual-studio"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-06T20:51:38.000Z","updated_at":"2025-05-09T05:37:02.000Z","dependencies_parsed_at":"2022-08-26T05:51:49.642Z","dependency_job_id":null,"html_url":"https://github.com/microsoft/vs-setup-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/vs-setup-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-setup-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-setup-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-setup-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-setup-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/vs-setup-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fvs-setup-samples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267911303,"owners_count":24164460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["setup","visual-studio"],"created_at":"2024-12-04T18:08:58.225Z","updated_at":"2025-07-30T17:30:30.424Z","avatar_url":"https://github.com/microsoft.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Visual Studio Setup Configuration Samples\n=========================================\n\nThe included samples show how to use the new setup configuration API for discovering instances of Visual Studio 2017 and newer.\n\nVisual Studio Instances\n-----------------------\n\nYou 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.\n\nThis 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.\n\nThe 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.\n\nAvailable Packages\n------------------\n\nThe following packages are available on [nuget.org](https://nuget.org) that provide access to the setup configuration API.\n\n*   **[Microsoft.VisualStudio.Setup.Configuration.Native](https://www.nuget.org/packages/Microsoft.VisualStudio.Setup.Configuration.Native/)**\n\n    Adds the header location and automatically links the library. You only need to add the `#include` as shown below.\n\n    ```c++\n    #include \u003cSetup.Configuration.h\u003e\n    ```\n\n*   **[Microsoft.VisualStudio.Setup.Configuration.Interop](https://www.nuget.org/packages/Microsoft.VisualStudio.Setup.Configuration.Interop/)**\n\n    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.\n\n    ```c#\n    var configuration = new SetupConfiguration();\n    ```\n\nUpdates\n-------\n\nFor the most recent updates to these samples, please see [https://github.com/microsoft/vs-setup-samples](https://github.com/microsoft/vs-setup-samples).\n\nRelated\n-------\n\nWe have published a number of related projects that are intended for real-world scenarios and may show a more extensive use of the APIs than shown in these samples.\n\n* [VSSetup.PowerShell](https://github.com/Microsoft/vssetup.powershell)\n  PowerShell module to interact with Visual Studio Setup \n* [VSIXBootstrapper](https://github.com/Microsoft/vsixbootstrapper)\n  An installer that can be chained with other packages to locate the latest VSIXInstaller.exe to use for installing VSIX extensions\n* [vswhere](https://github.com/Microsoft/vswhere)\n  Locate Visual Studio 2017 and newer installations\n\nLicense\n-------\n\nLicensed under the MIT license. See [LICENSE.txt](LICENSE.txt) in the project root for license information.\n\nCode of Conduct\n---------------\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fvs-setup-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fvs-setup-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fvs-setup-samples/lists"}