Code inspection: Cannot resolve resource item
Resource references must point not only to an existing resource file, but also to an existing item inside that file. This inspection reports a resource reference when the resource file exists but the requested resource item cannot be found in it.
Example
resources.ApplyResources(this.button1, "button1");
If the resource file does not contain an item named button1, this code is reported.
Quick-fix
The quick-fix can create the missing resource item in the resource file. After applying the fix, the code stays the same, but the missing button1 entry is added to the .resx file so the reference becomes valid.
01 April 2026