views:

143

answers:

1

I am working in a large team with multiple branches and merges happening on a regular basis.

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

I have two methods to removing the duplicates:

  1. Delete the item in the Project Explorer (which removes all entries as well as the on disk file), then get the file again from source control and add it back.
  2. Unload the project file, look for the duplicates, remove them (hoping they are located near one another) then reloading the project.

Both are tedious and I am not satisfied with them - do you have a better/faster/quicker method?

A: 

The easiest way is to simply right click on the duplicate and "Exclude from Project". When refresing the project, the duplicate will be gone.

Oded