.NET MAUI - Android - Build failed

Aneetha 65 Reputation points
2024-12-05T13:30:27.93+00:00

I migrated an MAUI Net 8 project from the Xamarin project. when building the application with MAUI Android, it failed with the following exceptions, Microsoft.PackageDependencyResolution.targets(266, 5): [NETSDK1004] Assets file '/Users/mark050/Documents/VA-DEV/SKM-Test/SKM_MOBILE/obj/project.assets.json' not found. Run a NuGet package restore to generate this file.

I noticed it also built the iOS platform code.

How to resolve this issue

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,026 questions
{count} votes

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.