dansiegel / dansiegel/Mobile.BuildTools

Unable to get transforms to work for Android Project

Open
#294 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
224
Forks
28
PR merge metrics
No merged PRs in 30d

Description

# Description

I'm new to using this package, so I'm betting this is a misunderstanding of the docs. Wondering if I'm putting the files in the wrong place to start with, or not giving them the proper build attributes:

1. I have an app.config in my Xamarin.Forms project (TrashMobMobile.csproj) with a single setting in it "TrashMobRootUrl"
2. In my TrashMobMobile.csproj, I have the following:
```



App.config


App.config


```
3. I've tried adding the same files to my TrashMobMobileApp.Android.csproj as both links and direct files
4. When I try to start my Android application in a local emulator, it never runs the transform. If I just put the app.config file in the TrashMobMobile.Android.csproj with a value, it works, but I really need different builds to point to different backend Urls.

- OS: Windows 10
- IDE: VS2022
- BuildTools Version: [2.0.245]
- IDE Version: [17.0.0]
- Build Target Framework: [netstandard2.1|Xamarin.iOS|Xamarin.Android]

## Reproduction App

Please include a sample app that reproduces the issue and/or a binlog. Failure to reproduce either of these may lead to the issue being closed or ignored.

Here is the github branch I am working in for the development. I appreciate any guidance you can provide on how to get this to work. If there is a better way to do this type of thing, please let me know).

https://github.com/joebeernink/TrashMob/tree/dev/jobee%2Faddflyout

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.