阻止Visual Studio使用GIT根作为解决方案根

时间:2018-11-07 18:19:41

标签: git visual-studio solution

假设我有仓库d:\git,并且我有这样的项目:

d:\git\tools\tool1\tool1.sln
d:\git\tools\tool2\tool2.sln

当我打开tool1.sln并使用“文件夹”模式使用解决方案时,由于存在d:\git,Visual Studio将解决方案的根设为d:\git\.git

“解决方案和文件夹”模式是此按钮:

Solutions and Folders

我不希望Visual Studio对GIT有任何了解。我希望它打开tool1.sln并保持解决方案的根目录d:\git\tools\tool1

一个特别令人烦恼的是,Visual Studio会爬网整个存储库以构建Intellisense。另一个是“在解决方案中查找”的爬网范围也太大。

建议?

0 个答案:

没有答案