Visual Studio 应用中心:缺少 .csproj 文件

Visual Studio App Center: missing .csproj files

我正在尝试为 Android 配置 Xamarin Forms 应用程序的自动构建]iOS,使用Visual Studio App Center,但是在Build App\Project select框中选择分支后我看不到我的项目(.csproj 文件)。或者更好的是,我看不到我必须构建的项目的 .csproj 文件(客户的自定义),但我可以看到我的核心项目的 .csproj。

配置 iOS 构建我能够 select .sln 文件,它有效,但是在 Android 我既看不到 .csproj 也看不到 .sln。

我的存储库结构:

经过几个小时的亵渎,我在这里找到了原因:https://docs.microsoft.com/en-us/appcenter/build/xamarin/android/

For best performance, the analysis is currently limited to four directory levels including the root of your repository.

我的存储库太深,无法访问 .csproj 文件。我联系了 Microsoft 询问我是否必须更改我的存储库结构,他们说是的,快速解决的唯一解决方案是删除 "layer",因此我删除了 src 文件夹,将所有内容移动到顶层。