{"id":15425740,"url":"https://github.com/olegsych/posh-vs","last_synced_at":"2025-04-19T15:50:03.457Z","repository":{"id":83985708,"uuid":"47896434","full_name":"olegsych/posh-vs","owner":"olegsych","description":"Makes Visual Studio command line tools available in PowerShell","archived":false,"fork":false,"pushed_at":"2019-08-03T20:33:53.000Z","size":30,"stargazers_count":32,"open_issues_count":5,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T09:41:33.569Z","etag":null,"topics":["powershell","visualstudio"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/olegsych.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-12T22:09:48.000Z","updated_at":"2024-12-11T09:13:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f2dcf37-b211-4a8d-82eb-e96c5fc1fa35","html_url":"https://github.com/olegsych/posh-vs","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":0.4444444444444444,"last_synced_commit":"cd47b2efb6cb2087fb9b0214a35f9368aed285c6"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsych%2Fposh-vs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsych%2Fposh-vs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsych%2Fposh-vs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegsych%2Fposh-vs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olegsych","download_url":"https://codeload.github.com/olegsych/posh-vs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249220841,"owners_count":21232421,"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","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":["powershell","visualstudio"],"created_at":"2024-10-01T17:53:36.539Z","updated_at":"2025-04-16T08:33:17.480Z","avatar_url":"https://github.com/olegsych.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# posh-vs\n\nMakes Visual Studio command line tools available in PowerShell. Supports Visual Studio 2015 and later versions.\n\n## Usage\n\nInstall posh-vs from the [PowerShell Gallery](https://www.powershellgallery.com/packages/posh-vs):\n```\nPS\u003e Install-Module posh-vs -Scope CurrentUser\n```\n\nChange your PowerShell profile to automatically import Visual Studio developer environment.\n```\nPS\u003e Install-PoshVs\n```\n\nStart a new PowerShell session or reload your profile:\n```\nPS\u003e . $profile\n```\n\nUse Visual Studio command line tools in PowerShell:\n```\nPS\u003e msbuild /?\n```\n\n## How it works\n\n`Install-PoshVs` adds an `Import-VisualStudioEnvironment` call to the PowerShell\n[profile](https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/about/about_profiles).\nIt will import the environment variables set by the `VsDevCmd.bat` of the latest version of Visual Studio installed\non your computer. If multiple instances of Visual Studio are installed, `Import-VisualStudioEnvironment`\nwill use whichever instance happens to be listed first.\n\nTo use a specific instance of Visual Studio, manually change your profile to import a specific batch file.\n```\nImport-BatchEnvironment 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\VsDevCmd.bat'\n```\n\n## Uninstall\n\nRemove posh-vs from your PowerShell profile.\n```\nPS\u003e Uninstall-PoshVs\nPS\u003e exit\n```\n\nUninstall posh-vs from your computer.\n```\nPS\u003e Uninstall-Module posh-vs\n```\n\n## Develop\n\n[![Build status](https://ci.appveyor.com/api/projects/status/github/olegsych/posh-vs?branch=master)](https://ci.appveyor.com/project/olegsych/posh-vs/branch/master)\n\nInstall pre-requisites.\n```\nPS\u003e .\\init.ps1\n```\n\n`Ctrl+Shift+B` to build and test in [VSCode](https://code.visualstudio.com) or\n```\nPS\u003e Invoke-psake\n```\n\n`F5` to debug tests in VSCode.\n\n## Credits\n\nposh-vs was inspired by [Alen Mack](http://allen-mack.blogspot.com/2008/03/replace-visual-studio-command-prompt.html),\n[StackOverflow contributors](http://stackoverflow.com/questions/2124753/how-i-can-use-powershell-with-the-visual-studio-command-prompt)\nand [posh-git](https://github.com/dahlbyk/posh-git).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegsych%2Fposh-vs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegsych%2Fposh-vs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegsych%2Fposh-vs/lists"}