I cannot get to the Project Properties Editor for MAUI project. How to fix this?

dg2k 1,416 Reputation points
2023-04-11T21:31:39.4966667+00:00
  • Visual Studio: Version 17.6.0 Preview 3.0 (was the same issue with Version 17.6.0 Preview 2.0)
  • Framework: 8.0.0-preview.1.23110.8
  • Operating System: Windows 11 Enterprise Insider Preview Edition; Version 22H2; OS Build 25336.1000

When I right-click on the project node to see Properties, I get the following error message shown as a screenshot. It offers to open a log file of the error, and the log is shown below. What causes this and how to fix it? vs-error

Log File

=====================
11/04/2023 13:51:45
Recoverable
System.ArgumentException: Expected 6 values for property AndroidRule::AndroidPackageFormat, but got 2.
Parameter name: values
   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.PropertyPages.Designer.Property.Update(ImmutableArray`1 values)
   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.PropertyPages.Designer.Property..ctor(PropertyMetadata metadata, ImmutableArray`1 values, PropertyContext context, ImmutableHashSet`1 varyByDimensions)
   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.PropertyPages.Designer.PropertyContextFactoryBase.ToProperty(IUIPropertySnapshot property, Page page, Category category, Int32 order, PropertyContext propertyContext, IPropertyEditorRegistry propertyEditorRegistry)
   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.PropertyPages.Designer.ProjectPropertyDataAccess.Observer.<HandleDataAsync>g__CreateProperties|14_5(<>c__DisplayClass14_0& )
   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.PropertyPages.Designer.ProjectPropertyDataAccess.Observer.<HandleDataAsync>g__ProcessInitialData|14_1(<>c__DisplayClass14_0& )
===================
Developer technologies | .NET | .NET MAUI
Developer technologies | Visual Studio | Other
{count} votes

Accepted answer
  1. Rob Caplan - MSFT 6,032 Reputation points Microsoft Employee Moderator
    2023-05-12T19:07:52.1433333+00:00

    This is a bug being tracked at https://developercommunity.visualstudio.com/t/Csproj-Editor-does-not-open-due-to-Andro/10333050 (as well as a few other duplicates).

    You can follow the progress in that item. You can vote for it if you're also running into it, and you can add more information if you have details that aren't in the existing issue. Both of these are good ideas to help prioritize in general, though this one appears clear enough that additional information probably isn't necessary.

    To my knowledge, this affects only .Net 8 which is in preview and not yet a finished product. It is not yet supported on Q&A.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.