You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an XF solution that I am trying to port to MAUI. Previously we had OurApp.iOS and OurApp.Android and most platform specifc code was in each of those target projects. In MAUI we have a Single Project approach, and we have put most of the platform specific stuff under Platforms/Android and Platforms/iOS that seems to work well.
We also have a AppleHealth integration that is fully developed in iOS and empty in Android, previously we would have had an AppleHealth.iOS project and an AppleHealth.Android project now we have a single project with both "implementations" under "Platforms" folder.
I have two implementations of a class called AppleHealthService each under Platforms/Android and Platforms.iOS, both in the same namespace OurApp.AppleHealthKit. I am getting a build error saying OurApp.AppleHealthKit already contains a definition for AppleHealthService.
When I am deplying to an Android device and have selected a target framework of "net8.0-android34.0" I would expect VS to not try and build the files under the Platforms/iOS folder but it does. Have I totally misunderstood how Single Project is supposed to work?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
We have an XF solution that I am trying to port to MAUI. Previously we had OurApp.iOS and OurApp.Android and most platform specifc code was in each of those target projects. In MAUI we have a Single Project approach, and we have put most of the platform specific stuff under Platforms/Android and Platforms/iOS that seems to work well.
We also have a AppleHealth integration that is fully developed in iOS and empty in Android, previously we would have had an AppleHealth.iOS project and an AppleHealth.Android project now we have a single project with both "implementations" under "Platforms" folder.
I have two implementations of a class called AppleHealthService each under Platforms/Android and Platforms.iOS, both in the same namespace OurApp.AppleHealthKit. I am getting a build error saying OurApp.AppleHealthKit already contains a definition for AppleHealthService.
When I am deplying to an Android device and have selected a target framework of "net8.0-android34.0" I would expect VS to not try and build the files under the Platforms/iOS folder but it does. Have I totally misunderstood how Single Project is supposed to work?
Beta Was this translation helpful? Give feedback.
All reactions