如何用PowerShell自动化VS 2017启动初始化并跳过启动界面?
Visual Studio 2017启动自动化:跳过初始化界面的实现方案
关键启动参数说明
Visual Studio 2017的devenv.exe支持以下参数来跳过启动时的两个界面:
/NoSplash:跳过启动闪屏界面/NoWelcome:跳过欢迎界面,直接进入VS主窗口
PowerShell命令实现
将上述参数添加到你的启动命令中,即可完成自动化启动:
# 写法一:使用Start-Process Start-Process "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe" -ArgumentList "/NoSplash", "/NoWelcome" # 写法二:直接调用可执行文件(更简洁) & "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe" /NoSplash /NoWelcome
可选扩展:直接打开项目/解决方案
如果需要启动后直接加载指定项目或解决方案,可追加路径参数:
& "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.exe" /NoSplash /NoWelcome "D:\YourProjects\TargetSolution.sln"
内容的提问来源于stack exchange,提问作者JustAnotherDev
相关产品推荐
相关产品推荐

