appcenter-docs
appcenter-docs copied to clipboard
Add #define to Xamarin solution build???
There is no link or documentation about how to consume the env variables into the Xamarin solution itself, I want to add some #define for the build process and it doesn't seem to work directly, the prebuild cannot add build arguments. This whole opact build step is painful, is there a way to add define to the build process? I want precompiler switch and not runtime env file. How can we achieve that with a Xamarin solution and AppCenter?
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 97f3af3f-ef07-8896-4b3c-05cef163b51a
- Version Independent ID: b4b1f6a4-5975-358b-1cf4-f7b10a2245cd
- Content: Build Environment Variables - Visual Studio App Center
- Content Source: docs/build/custom/variables/index.md
- Service: vs-appcenter
- Sub-service: app-center-build
- GitHub Login: @lucen-ms
- Microsoft Alias: lucen