Vcxproj file will not load into solution

We recently switched to VS 2010, and I had a solution that worked great. This moraine, when I try to download the solution, I get an error message:

"An item with the same key has already been added."

This happens when he tries to download one of our main projects and does not load.

I assumed that the problem was in my solution, so I created a completely new empty solution and tried to load the same vcxproj and got exactly the same error.

When I return the project file to the previous version, it works, so apparently this is something in the vcxproj file. However, it also seems that I'm the only one in the office that is affected. Therefore, some combination of the vcxproj file and my computer seems to be a problem.

Has anyone seen anything like this before? Any ideas for a solution? Thanks

+6
visual-studio-2010 loading
source share
3 answers

Not sure what caused the problem, however, deleting all the temporary files:

<proj>.vcxproj.user <proj>.vcxproj.filters <proj>.vcproj.<domainname???>.<username>.user <proj>.suo 

fixed the problem.

I suspect it was just

 <proj>.vcxproj.user <proj>.vcxproj.filters 

or both that actually fixed it, but I deleted all 4 so that it could be any of them.

Changing the vcxproj file, which resulted in a break, was renaming some files and adding some files, so I assume that one of the generated files had an outdated link that blocked the load.

+5
source share

If you figure out how to get the message again, maybe you can open the error at https://connect.microsoft.com/ and attach the encrypted one. vcxproj and * .sln so we can fix it.

Dan [msbuild]

0
source share

I had the same signal as in windows explorer

Based on my understanding, you will get the same error even when you create every simple Windows Phone project for Windows C ++ from VS2012. In this case, I doubt the problem is with your VS.

And according to Konrads, answer in this thread with similar problems: http://social.msdn.microsoft.com/Forums/en-US/cba01040-067e-4ac3-ba4c-a8a14ba3c45d/unable-to-read-the-project -file , I feel that you can check if this file exists: C: \ Program Files (x86) \ MSBuild \ Microsoft \ WindowsPhone \ v7.0 \ Microsoft.Cpp.Windows Phone.7.0.targets located on your system. If it is not there, I doubt that the VS installation is wrong.

If you are not using VS Express, you can find the IDE in the folder and then run these commands to see if this can help:

 Please open Windows Explorer, and navigate to <Visual Studio Installation Path>\Common7\IDE Devenv.exe /SafeMode: Launches the IDE in safe mode loading minimal windows. Devenv.exe /ResetSettings: Restores the IDE default settings, optionally resets to the specified VSSettings file. Devenv.exe /ResetAddin: Removes commands and command UI associated with the specified Add-in. Devenv.exe /ResetSkipPkgs: Clears all SkipLoading tags added to VSPackages. 

If there is no help, I suggest you try restoring VS or uninstalling it and then reinstalling.

0
source share

All Articles