How to remove duplicate entries from visual studio web project?

I work in a large team with several branches and merging occurs regularly.

One thing that happens on a regular basis is that web project files contain duplicate entries for static content (.js, favicon.ico, etc.).

I have two methods for removing duplicates:

  • Delete the item in Project Explorer (which deletes all entries, as well as the file on disk), then again get the file from the original control and add it back.
  • Upload the project file, find duplicates, delete them (hoping that they are next to each other), and then reload the project.

Both are tedious and I'm not satisfied with them - do you have a better / fast / fast method?

+3
source share
1 answer

The easiest way is to simply right-click on the duplicate and select the "Exclude from project" option. The duplicate will disappear after updating the project.

+4
source

Source: https://habr.com/ru/post/1714556/


All Articles