This error occurs when Visual Studio is unable to import the AutoImport.props file due to it being invalid. This issue is related to the Microsoft.Maui.Sdk and Microsoft.Maui.Resizetizer.Sdk packages. To fix this issue, try the following steps:
- Close Visual Studio.
- Delete the contents of the following folders:
- C:\Program Files\dotnet\sdk\NuGetFallbackFolder
- C:\Users{username}.nuget\packages
- Open Visual Studio and reload the solution.
- Rebuild the solution.
If the issue persists, try uninstalling and reinstalling the Microsoft.Maui.Sdk and Microsoft.Maui.Resizetizer.Sdk packages.
References: