dansiegel / Mobile.BuildTools

The Mobile.BuildTools makes it easier to develop code bases in a clean, consistent, secure, and configurable way. Determine at Build which environment your app needs to run on, and what Client Secrets it should have. Plus many more amazing features!
http://mobilebuildtools.com
MIT License
228 stars 29 forks source link

Issue with App Center for UWP apps #178

Closed ale-ramirez closed 3 years ago

ale-ramirez commented 3 years ago

Hi Dan,

I wonder if you guys have any solution for an issue that affects UWP apps at App Center.

I've got an app built with Xamarin Forms that works for iOS, Android, and UWP platforms.

To distribute it, I use the App Center, which works well for iOS and Android, but not for UWP.

Mobile.BuildTools is used the same way for the three platforms.

The Secrets or environment variables in the App Center are also set up the same way for the three platforms.

However, the build process only fails for UWP. The "secrets.json" is not generated, so an error is generated.

I tried to see this issue with the App Center support team, but they only suggested adding a script. I don't know how to do that, so I'm stuck with this issue.

I think it's an issue that the App Center team should fix, but it seems they're not willing to do it.

Please let me know.

Thank you very much.

Regards,

Alejandro

dansiegel commented 3 years ago

sounds like you're using version 1.x... the v2 preview should solve the issue for you as we describe the variables in the buildtools.json which is safe to check in... The problem is that Azure DevOps which backs App Center, uses a different behavior on their Windows build agents in which the to a ToUpper() on all variables... since we know what variables to look for in v2 we can work around the problem.. v1 can't.