我想使用 Visual Studio 作为 Tower 中的默认合并工具。我查看了安装程序附带的文档和 comparetools.jsons,但遗憾的vsDiffMerge /?
是没有提供任何有用的信息来说明参数的去向。
问问题
140 次
1 回答
1
要将 Visual Studio 2017 配置为 Tower 中的合并工具,请放置vs2017.json
在以下目录中:%LOCALAPPDATA%\fournova\Tower\Settings\CompareTools\
设置以下内容,并在需要时调整 Visual Studio 搜索路径:
{
"DisplayName": "Visual Studio 2017",
"MinimumVersion": "",
"SupportsDiffChangeset": true,
"SupportsDirectoryDiff": false,
"DiffToolArguments": "\"$LOCAL\" $REMOTE /t",
"MergeToolArguments": "\"$REMOTE\" \"$LOCAL\" \"$BASE\" \"$MERGED\" /m",
"ApplicationRegistryIdentifiers": [
],
"ApplicationPaths": [
"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Preview\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe",
"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Preview\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe",
"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Preview\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe",
"%ProgramFiles(x86)%\\Microsoft Visual Studio\\Preview\\TeamExplorer\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe",
"%ProgramFiles(x86)%\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe",
"%ProgramFiles(x86)%\\Microsoft Visual Studio\\2017\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe",
"%ProgramFiles(x86)%\\Microsoft Visual Studio\\2017\\Community\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe",
"%ProgramFiles(x86)%\\Microsoft Visual Studio\\2017\\TeamExplorer\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe"
]
}
重新启动 Tower,然后在首选项窗口中选择 Visual Studio:
也可以看看:
于 2018-07-23T15:22:04.270 回答