- 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?
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& )
===================