Visual Studio 当 .git 文件夹放置在项目中时,Cordova vs-mda-remote 无限循环

Visual Studio Cordova vs-mda-remote endless loop when .git folder placed inside the project

我在VS中的Cordova项目结构如下:

Solution_Folder
solution.sln
- solution_root
- - .git
- - js
- - css
....

在这种情况下,IOS 的编译永远不会通过以下阶段:

Extracting /Users/user/remote-builds/builds/1747/upload_1747.tgz to /Users/user/remote-builds/builds/1747/cordovaApp...
GET /build/tasks/1747 200 2ms - 463b
GET /build/tasks/1747 200 5ms - 463b
...

它永远不会结束 - 我需要 kill -9 进程。

如果我删除“.git”文件夹 - 一切正常。

我使用 SourceTree 来管理 BitBucket 上的项目。

如何向 Visual Studio 解释忽略此文件夹而不将其包含在编译中?

您应该将 .git 移动到项目的根文件夹。

顺便说一句,here is an example of a Visual Studio .gitignore