Add-VsDevPwsh7
0.1.3
Locate installed Visual Studio instances via vswhere, generate a startup script that loads complete VS build environment for PowerShell 7.
Supports registering to Windows Registry and adding dedicated profile to Windows Terminal.
通过 vswhere 检索本机已安装的 Visual Studio,生成加载完整编译环境的 PowerShell 7 启动脚本,支持写入注册表注册程序、向 Windows Terminal 添加专属配置项。
Installation Options
Owners
Copyright
(c) 2026 ScriptForge. All rights reserved.
Package Details
Author(s)
- ScriptForge
Tags
VisualStudio PowerShell7 Developer Terminal
Functions
Dependencies
This script has no dependencies.
Release Notes
v0.1.3 (Emergency Critical Patch)
- Critical Bug Fix: Remove extra backtick escape character before $Vswhere, which caused variable to be parsed as literal string.
- 关键紧急修复:删除 $Vswhere 前多余的反引号转义符,修复变量被识别为纯文本字符串的严重bug
- Exit code specification unchanged:
1 = Specified vswhere.exe cannot be found
2 = Target output directory lacks read/write permissions
- 退出码定义维持不变:
1 = 指定的vswhere.exe文件不存在
2 = 目标输出目录无读写权限
Affected Version: v0.1.2, all users must upgrade urgently
受影响版本:v0.1.2,所有用户请紧急升级
FileList
- Add-VsDevPwsh7.nuspec
- Add-VsDevPwsh7.ps1