Closed carbon-paulc closed 1 year ago
I don't use LiveSharp so I really couldn't tell you what's going on there... that said my guess is that the next version of Mobile.BuildTools will solve things for you as that's when I'm planning on making the conversion to Roslyn Source Generators... but I do not have a time frame as I don't currently have the bandwidth to get any updates on this for the next few months.
No worries - grateful it's here in the first place.
I think the livesharp error is an unintended consequence of the appsettings regenerating on deploy as well as build.
Do you if there's a way to stop the generation on deploy?
Hi, I have a question regarding AppSettings. I've started using vs2022 (previosult 2019) and am running into problems with the AppSettings generated file and a product called LiveSharp. The error is related to LiveSharp and Cecil, but it seems to be triggered by the AppSettings behaviour.
I've noticed if I Build it generates my Helpers/AppSettings.g.cs file fine. If I then deploy to Android (not tested ios) it then runs the generate again (and outputs the auto generated code to the debug output). This generation seems to kick off something in LiveSharp which then errors - additionally it also triggers the Fody process to run (not sure if that helps). When running in vs2019 - it would seem that the AppSettings is generated on Build but not on deploy.
If I remove the AppSetting from buildtools.json the Build and then Deploy run successfully.
My quesiton is twofold:
this is the output from vs2022 when deploying:
Thanks in advance, Paul.