Mewnojs/PlantsVsZombies.NET

The Lawn_Android project encountered many problems.

Opened this issue · 1 comments

There had been two hard problems with Lawn_Android project.

Firstly,the corresponding net-android version is already out of support.If you have not encountered this error yet,please try updating visual studio to the latest version(VS2022 17.8.1).
After the release of .net8 on september, the .net6 targets for ex-xamarin platforms (android, ios) got deprecated.
OutOfSupport
As for a quick way to handle it,which does not require a large modification to codes,please refer to this problem:https://community.monogame.net/t/workload-net6-0-android-is-out-of-support-error/19877

Secondly,(however,I am not sure if this is a bug)Line629 in MonoModUtils.cs will throw an unhandled exception.This exception can be avoided by simply turning the line into comment or deleting the statement.
Exception

I'm currently working on it. As a workaround, you can install .NET 7.0 SDK and call it a day.

Migrating to .NET 8.0 is difficult because we need to find a replacement of MonoMod which in its two branches, stopped supporting either newer .NET or Android platform entirely. This means all the mod scripting functions need an overhaul, or just left to be abolished.