project-system icon indicating copy to clipboard operation
project-system copied to clipboard

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

Open Perpete opened this issue 1 year ago • 1 comments

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

Perpete avatar Nov 17 '24 08:11 Perpete

@melytc assigning to take a look

haileymck avatar Dec 05 '24 23:12 haileymck