getting errors while migrating to MAUI

Satya 160 Reputation points
2023-02-01T05:24:37.6933333+00:00
  1. I have tried migrating existing forms project to MAUI
  2. I have used .NET Upgrade Assistant dotnet tool and ran these commands

dotnet tool update --global upgrade-assistant

upgrade-assistant upgrade <path to sln or csproj> --non-interactive --entry-point *

  1. Later Forms Namespaces and target framework are updated to MAUI in Main library and I have manually fixed few design issues related to compiled bindings, android and iOS namespace errors in respective platforms.

But still i am getting these errors and there is no file called colors.xml in the resources

Errors :

Resources\values\colors.xml(2): error APT2168: <item> must have a 'type' attribute. APT2000 expected reference but got (raw string) #000000.

Resources\values\colors.xml : error APT2261: file failed to compile.

Anyone have any idea about these issues?

Thanks in advance

Developer technologies .NET .NET MAUI
Developer technologies .NET Other
{count} vote

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

  2. Satya 160 Reputation points
    2023-02-06T04:44:51.5766667+00:00

    Hi @Yonglun Liu (Shanghai Wicresoft Co,.Ltd.)

    Not able to resolve the errors after trying your suggestions.

    I have created a new MAUI project and Manually moved all the code, included packages in .csproj, fixed all compile time errors and build is now successful without errors.

    Still i need to work on compiled bindings. If you have any example for compiled bindings, please share here

    Thanks in advance


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.