Troubleshoot Build Failure with TestAdapter in Automate
Why is my build failing after adding BrowserStack.TestAdapter?
If your build fails after adding BrowserStack TestAdapter, run the following command to see detailed logs alongwith error messages:
dotnet build -v d
Here are few possible reasons for the build failure:
- There are multiple
.csproj
in the same directory or.csproj
is not present on the current working directory. - The
.config/dotnet-tools.json
already contains an older version of browserstack-sdk tool. This causes an issue in installing a newer version of the tool and the build breaks. The build log should containRun "dotnet tool restore" to make the "browserstack-sdk" command available
.
Run the following commands to fix this:
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.
We're continuously improving our docs. We'd love to know what you liked
Thank you for your valuable feedback!