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

[Secrets] WinUI/MAUI Support #302

Closed Seuleuzeuh closed 1 year ago

Seuleuzeuh commented 2 years ago

SUMMARY

I've started an MAUI app, and i try to use the tool that i love from XF. I've try to use Mobile.BuildTools to generate Secrets part (appSettings with class generation), they work fine on Android, iOS and MacCatalyst. But does'nt work for WinUI.

DETAILS

I've try to figure out by myself, trying to update the props, targets and some task, but i've failed to make it work. The class it's generated in the obj folder, but the build failed with "class not found"

error CS0234: The type or namespace name 'Helpers' does not exist in the namespace 'MonLEOMessenger'

PLATFORMS

dansiegel commented 2 years ago

I'm going to assume that this issue is already resolved as 2.1 will change the implementation over to use Roslyn Source Generators moving forward. If you can provide a sample app though I would be happy to verify that for you.

Seuleuzeuh commented 2 years ago

I've forked and added an MAUI sample in the main branch codebase (i'f you want that in a PR tell me). The secret generation does not work in WinUI. I'll make you a repro project that you can test by yourself.

dansiegel commented 1 year ago

This is all Roslyn based now and works just fine with WinUI