{"id":15422604,"url":"https://github.com/heaths/go-vssetup","last_synced_at":"2025-10-15T02:32:55.268Z","repository":{"id":45982886,"uuid":"404643015","full_name":"heaths/go-vssetup","owner":"heaths","description":"Go bindings for Visual Studio Setup Configuration","archived":false,"fork":false,"pushed_at":"2021-11-23T06:00:11.000Z","size":1471,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-26T06:58:08.712Z","etag":null,"topics":["interop","visual-studio"],"latest_commit_sha":null,"homepage":"","language":"Go","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/heaths.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-09T08:23:44.000Z","updated_at":"2023-09-08T18:26:20.000Z","dependencies_parsed_at":"2022-09-15T11:00:44.303Z","dependency_job_id":null,"html_url":"https://github.com/heaths/go-vssetup","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/heaths/go-vssetup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgo-vssetup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgo-vssetup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgo-vssetup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgo-vssetup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heaths","download_url":"https://codeload.github.com/heaths/go-vssetup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fgo-vssetup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279036068,"owners_count":26089817,"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-10-15T02:00:07.814Z","response_time":56,"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":["interop","visual-studio"],"created_at":"2024-10-01T17:39:00.939Z","updated_at":"2025-10-15T02:32:55.226Z","avatar_url":"https://github.com/heaths.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Visual Studio Setup Configuration\n\n[![releases](https://img.shields.io/github/v/release/heaths/go-vssetup.svg?logo=github)](https://github.com/heaths/go-vssetup/releases/latest)\n[![reference](https://pkg.go.dev/badge/github.com/heaths/go-vssetup.svg)](https://pkg.go.dev/github.com/heaths/go-vssetup?GOOS=windows)\n[![ci](https://github.com/heaths/go-vssetup/actions/workflows/ci.yml/badge.svg)](https://github.com/heaths/go-vssetup/actions/workflows/ci.yml)\n\n[Microsoft Visual Studio](https://visualstudio.microsoft.com) 2017 and newer uses a new setup engine that allows multiple instances to be installed quickly and in different configuration. To enumerate these instances and find one that fulfills your requirements, the [Setup Configuration API](https://devblogs.microsoft.com/setup/documentation-available-for-the-setup-configuration-api) provides a set of interface. This crate provides a safe and idiomatic wrapper for [Go](https://golang.org).\n\n## Example\n\nFirst install the heaths/go-vssetup module:\n\n```bash\ngo get github.com/heaths/go-vssetup\n```\n\nYou can then use the `vssetup` module to enumerate instances:\n\n```go\n// Enumerate launchable instances.\ninstances, _ := vssetup.Instances(false)\nfor _, instance := range instances {\n    if installationPath, err := instance.InstallationPath(); err == nil {\n        fmt.Println(\"InstallationPath =\", installationPath)\n    }\n}\n```\n\n### vswhere\n\nWhile this project is not meant to replace the official [vswhere] that ships with Visual Studio and is available in some package managers, nor is it meant to be fully compatible with all official vswhere options, this project does have a `vswhere` command that allows you to quickly see this module in action:\n\n```bash\ngo run ./cmd/vswhere\n```\n\nYou can also download a binary from [releases](https://github.com/heaths/go-vssetup/releases). It is not call-compatible with the official [vswhere].\n\n## FAQ\n\n* **On what platforms does this work?**\n\n  This module should compile on any platform but will only return available instances on Windows if Visual Studio 2017 or newer is installed.\n\n* **Is this project supported by Microsoft?**\n\n  Though I am the developer who wrote the Setup Configuration API while working for Microsoft, this module is unsupported by Microsoft.\n\n[vswhere]: https://github.com/microsoft/vswhere\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheaths%2Fgo-vssetup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheaths%2Fgo-vssetup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheaths%2Fgo-vssetup/lists"}