[diagnostic]: WFO0002 Unsupported property value. #2024
Labels
doc-idea
Indicates issues that are suggestions for new topics [org][type][category]
in-pr
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Label to indicate an item has been imported.
Technology
Windows Forms
Languages that apply
Default Reporting Scope
Error
Rule ID
WFO0002
.editorConfig Setting ID
dotnet_dagnostics.WFO0002
Short Title
Unsupported property value
Description
This error will generate one of the following messages -
ArgumentException: Project property '{0}' cannot be set to '{1}'
ArgumentException: Project property '{0}' cannot be set to '{1}'. Reason: {2}.
It was first implemented n NET6 with the following feature - https://learn.microsoft.com/en-us/dotnet/desktop/winforms/whats-new/net60?view=netdesktop-6.0#new-application-bootstrap as
WFAC002
and then renamed in NET9 toWFO0002
This error is raised when one of the following project properties is set to an invalid value in the project file:
And the code generator fails to generate appropriate code-behind.
How to fix
Set a valid value or remove
ApplicationConfiguration.Initialize
. If this error is suppressedAplicationConfiguration
code wouldn't be generated and application will not runAssociated WorkItem - 402811
The text was updated successfully, but these errors were encountered: