2017-12-19 18 views

答えて

1

ソースコントロールプロバイダは、vsregedit.exeを使用して設定できます。

PowerShellスクリプトからソース管理プロバイダとしてのGitを設定する:

$vsWherePath = Join-Path ${env:ProgramFiles(x86)} "Microsoft Visual Studio\Installer\vswhere.exe" 
$vsVersion = "[15.0,16.0)" 
$installPath = &$vsWherePath -all -latest -version $vsVersion -property installationPath 
$vsregedit = Join-Path $installPath 'Common7\IDE\vsregedit.exe' 


&$vsregedit set "$installPath" HKCU CurrentSourceControlProvider `"`" string "{11B8E6D7-C08B-4385-B321-321078CDD1F8}" 
関連する問題