Skip to content

Unable to add the same resource after deleting it if stored for windows forms. #9593

Open
@Perpete

Description

@Perpete

Visual Studio Version

17.12.1

Summary

If you delete a resource (Ex: image, file) with a storage for
windows forms, it is impossible to add this same resource again.
The resource does not appear in the list of resources.
For the storage of the resource for WPF, the problem is not present.
Closing and reopening visual studio solves the problem.

Steps to Reproduce

  1. Add a resource of type image.
  2. Choose the storage for Windows Forms.
  3. Delete this resource.
  4. Add this same image again.
    (See illustration)

Image

You can also see that it is not possible to delete the image in the resources folder.
This deletion is also not possible if the resources explorer is closed.
We get error code 32.

I also noticed that deleting a resource for example an image in the resource explorer did not automatically delete the image in the Resources folder of the solution explorer.
Is this planned in this way?

Another remark is the non visibility of the storage type of the resource (Windows forms or WPF) in the columns.
The user can make a wrong selection when adding the resource. Currently, he does not see his storage selection..
If this information was visible, we could perhaps modify it from the column.

Image

Metadata

Metadata

Assignees

Labels

Feature-Resource-ExplorerThe modern Resource Explorer for editing and managing RESX and RESW files.Triage-InvestigateReviewed and investigation needed by dev team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions