mirror of
https://github.com/actions/runner-images.git
synced 2025-12-26 11:28:17 +08:00
8 lines
431 B
PowerShell
8 lines
431 B
PowerShell
$vsInstallRoot = (Get-VisualStudioInstance).InstallationPath
|
|
$devEnvPath = "$vsInstallRoot\Common7\IDE\devenv.exe"
|
|
|
|
# Initialize Visual Studio Experimental Instance
|
|
# The Out-Null cmdlet is required to ensure PowerShell waits until the '/ResetSettings' command fully completes.
|
|
& "$devEnvPath" /RootSuffix Exp /ResetSettings General.vssettings /Command File.Exit | Out-Null
|
|
|
|
cmd.exe /c "`"$devEnvPath`" /updateconfiguration" |