AppCenter 测试分块失败:

5 visual-studio-app-center visual-studio-app-center-test

我有一个要在 AppCenter 上使用的 UITest,但收到此错误消息测试分块失败。

\ Preparing tests... Test chunking failed: Format of the executable (.exe) or library (.dll) is invalid.

appcenter test run uitest --app "NCCN/Reimbursement-Android" --devices d1c9f63e --debug --app-path "PathToAPK.apk" --test-series "master" --locale "en_US" --build-dir "PathToReleaseFoler"
Run Code Online (Sandbox Code Playgroud)

Seb*_*ari 0

也许您的问题是--build-dir有很多不必要的文件。尝试将其指向仅包含所需文件的文件夹,例如,在我的情况下,我有:

  • [我自己的项目dll/s]
  • Xamarin.*
  • nunit框架.dll

就这些,而且效果很好。