4

I have a very strange issue with Visual Studio 2012.

On one of the branches in our SVN repository, some files appear duplicated in the Solution Explorer tab. The files do not cause problems and both entries in the tree seem to refer to the same file. It's just a little disconcerting.

I have tried a diff on the .csproj files and .sln file, but cannot see any difference that might cause this issue.

Screenshot showing duplicated file

Any ideas?

This is on 64bit Windows 7, Plugins installed: Visual SVN 3.0 and Resharper 7

wonea
  • 1,877

2 Answers2

3

I had the same problem and they were duplicated in the project file. I edited the file, found the dupes and removed them. I'm guessing it happened as part of a bad merge conflict by someone. My problem happened in VS 2010 incidentally.

0

Find YourProjectName.csproj file, search for the duplicate file name with the correct location, e.g. in my case

<Content Include="Views\Login\autologin.cshtml" />
<Content Include="Views\Login\autologin.cshtml" />

and remove one of the lines and save over the project Solution Explorer, select your project, right click, unload project and reload it again. It should resolve the issue.

Peter
  • 1,095