Add-VsDevPwsh7
0.2.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
Test-Is64BitOS Test-ParameterDependency Register-VsDevTerminalToRegistry
Dependencies
This script has no dependencies.
Release Notes
## v0.2.3
- Fix: Fix the problem of failing to register correctly to the registry / 修复无法正确注册到注册表的问题
Fix: Fix the issue that the script forcibly overwrites the native -InformationAction common parameter
The original logic hardcoded "$InformationPreference = 'Continue'", which would override custom output policies such as SilentlyContinue / Inquire passed by users;
It is modified to apply the default output level only when the user does not manually specify -InformationAction and there is no preset value in the scope.
修复:解决脚本强制覆盖原生公共参数 -InformationAction 的问题
原有逻辑硬编码赋值 $InformationPreference = 'Continue',会覆盖用户传入的 SilentlyContinue / Inquire 等自定义输出策略;
修改后仅在用户未手动指定 -InformationAction 且当前作用域无预设值时,才启用默认输出等级。
- Refactor:
- No functional changes / 无功能变更
FileList
- Add-VsDevPwsh7.nuspec
- Add-VsDevPwsh7.ps1