Error migrating VS2008 c++ project to VS2012

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi
I am trying to convert a VC++ 2008 project (compiles without errors in vs2008) into a vs2012 project.
I have successfully managed to convert other projects, however this one gives me the following error when migrating:
<table>
<tbody>
<tr name="x_x_ErrorRowClassUIControls
<td></td>
<td> UIControlsUIControls.vcproj:
<span>An item with the same key has already been added.</td>
</tr>
<tr name="x_x_ErrorRowClassUIControls
<td></td>
<td>
UIControlsUIControls.vcproj:
<span>Project upgrade failed.
<span>
</td>
</tr>
</tbody>
</table>
<span>The following error has occurred during XML parsing: File: xxxUIControls.vcproj Line: 612 Column: 0 Error Message: The parameter is incorrect. The file xxxUIControls.vcproj has failed to load.

Below is the contents of UIControls.vcproj:<span>
<pre class="prettyprint <?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="UIControls3"
ProjectGUID="{36C6C504-055C-4311-840F-47EB99C2BFBE}"
RootNamespace="UIControls"
Keyword="ManagedCProj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="..........binDebug"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
ManagedExtensions="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG"
RuntimeLibrary="3"
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="$(NoInherit)"
LinkIncremental="2"
GenerateDebugInformation="true"
AssemblyDebug="1"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="C:ProjectsSoftRexBuild"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
ManagedExtensions="2"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG"
RuntimeLibrary="2"
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="$(NoInherit)"
LinkIncremental="1"
GenerateDebugInformation="true"
RandomizedBaseAddress="1"
DataExecutionPrevention="0"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
<AssemblyReference
RelativePath="System.dll"
AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
MinFrameworkVersion="131072"
/>
<AssemblyReference
RelativePath="System.Data.dll"
AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86"
MinFrameworkVersion="131072"
/>
<AssemblyReference
RelativePath="System.Drawing.dll"
AssemblyName="System.Drawing, Version=2.0.0.0, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
MinFrameworkVersion="131072"
/>
<AssemblyReference
RelativePath="System.Windows.Forms.dll"
AssemblyName="System.Windows.Forms, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
MinFrameworkVersion="131072"
/>
<AssemblyReference
RelativePath="System.XML.dll"
AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
MinFrameworkVersion="131072"
/>
<AssemblyReference
RelativePath="........BuildCommon3.dll"
AssemblyName="Common3, Version=1.0.4717.19095, processorArchitecture=MSIL"
MinFrameworkVersion="131072"
/>
<AssemblyReference
RelativePath="........BuildMicrosoft.DirectX.Direct3D.dll"
AssemblyName="Microsoft.DirectX.Direct3D, Version=1.0.2902.0, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86"
MinFrameworkVersion="0"
/>
<AssemblyReference
RelativePath="........BuildMicrosoft.DirectX.Direct3DX.dll"
AssemblyName="Microsoft.DirectX.Direct3DX, Version=1.0.2911.0, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86"
MinFrameworkVersion="0"
/>
<AssemblyReference
RelativePath="........BuildMicrosoft.DirectX.DirectDraw.dll"
AssemblyName="Microsoft.DirectX.DirectDraw, Version=1.0.2902.0, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86"
MinFrameworkVersion="0"
/>
<AssemblyReference
RelativePath="........BuildMicrosoft.DirectX.dll"
AssemblyName="Microsoft.DirectX, Version=1.0.2902.0, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86"
MinFrameworkVersion="0"
/>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath=".AddNetworkDlg.cpp"
>
</File>
<File
RelativePath=".AssemblyInfo.cpp"
>
</File>
<File
RelativePath=".BinHistory.cpp"
>
</File>
<File
RelativePath=".BiteCtrl.cpp"
>
</File>
<File
RelativePath=".ColourLevelPalette.cpp"
>
</File>
<File
RelativePath=".ColourStateWaterfall.cpp"
>
</File>
<File
RelativePath=".ConfigurationForm.cpp"
>
</File>
<File
RelativePath=".ConnectionDialog.cpp"
>
</File>
<File
RelativePath=".Cursors.cpp"
>
</File>
<File
RelativePath=".DDGraphic.cpp"
>
</File>
<File
RelativePath=".DirectDrawCtrl.cpp"
>
</File>
<File
RelativePath=".FastDrawingControl.cpp"
>
</File>
<File
RelativePath=".FFTCtrl.cpp"
>
</File>
<File
RelativePath=".FrequencyControl.cpp"
>
</File>
<File
RelativePath=".GeoPositionCtrl.cpp"
>
</File>
<File
RelativePath=".MyDevice.cpp"
>
</File>
<File
RelativePath=".NetworkDlg.cpp"
>
</File>
<File
RelativePath=".PolarControl.cpp"
>
</File>
<File
RelativePath=".Row.cpp"
>
</File>
<File
RelativePath=".SpectrumDataStore.cpp"
>
</File>
<File
RelativePath=".SpectrumEvents.cpp"
>
</File>
<File
RelativePath=".SpectrumHistory.cpp"
>
</File>
<File
RelativePath=".SpectrumRegion.cpp"
>
</File>
<File
RelativePath=".stdafx.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
</File>
<File
RelativePath=".UIControlsControl.cpp"
>
</File>
<File
RelativePath=".UserSettings.cpp"
>
</File>
<File
RelativePath=".UserSettingsDlg.cpp"
>
</File>
<File
RelativePath=".WaterfallCtrl.cpp"
>
</File>
<File
RelativePath=".WFVertexBuffers.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".AddNetworkDlg.h"
FileType="3"
>
<File
RelativePath=".AddNetworkDlg.resx"
>
</File>
</File>
<File
RelativePath=".BinHistory.h"
>
</File>
<File
RelativePath=".BiteCtrl.h"
FileType="4"
>
<File
RelativePath=".BiteCtrl.resX"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".ColourLevelPalette.h"
>
</File>
<File
RelativePath=".ColourStateWaterfall.h"
FileType="4"
>
<File
RelativePath=".ColourStateWaterfall.resx"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".ConfigurationForm.h"
FileType="3"
>
<File
RelativePath=".ConfigurationForm.resx"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".ConnectionDialog.h"
FileType="3"
>
<File
RelativePath=".ConnectionDialog.resx"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".Cursors.h"
>
</File>
<File
RelativePath=".DDGraphic.h"
>
</File>
<File
RelativePath=".DirectDrawCtrl.h"
FileType="4"
>
<File
RelativePath=".DirectDrawCtrl.resx"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".FastDrawingControl.h"
FileType="4"
>
<File
RelativePath=".FastDrawingControl.resX"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".FFTCtrl.h"
FileType="4"
>
<File
RelativePath=".FFTCtrl.resX"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".FrequencyControl.h"
FileType="4"
>
<File
RelativePath=".FrequencyControl.resX"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".GeoPositionCtrl.h"
FileType="4"
>
<File
RelativePath=".GeoPositionCtrl.resx"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".MyDevice.h"
>
</File>
<File
RelativePath=".NetworkDlg.h"
FileType="3"
>
<File
RelativePath=".NetworkDlg.resx"
>
</File>
</File>
<File
RelativePath=".PolarControl.h"
FileType="4"
>
<File
RelativePath=".PolarControl.resx"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".resource.h"
>
</File>
<File
RelativePath=".Row.h"
>
</File>
<File
RelativePath=".SpectrumDataStore.h"
>
</File>
<File
RelativePath=".SpectrumEvents.h"
>
</File>
<File
RelativePath=".SpectrumHistory.h"
>
</File>
<File
RelativePath=".SpectrumRegion.h"
>
</File>
<File
RelativePath=".stdafx.h"
>
</File>
<File
RelativePath=".UIControlsControl.h"
FileType="4"
>
<File
RelativePath=".UIControlsControl.resX"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".UserSettings.h"
>
</File>
<File
RelativePath=".UserSettingsDlg.h"
FileType="3"
>
<File
RelativePath=".UserSettingsDlg.resx"
>
</File>
</File>
<File
RelativePath=".WaterfallCtrl.h"
FileType="4"
>
<File
RelativePath=".WaterfallCtrl.resX"
SubType="Designer"
>
</File>
</File>
<File
RelativePath=".WFVertexBuffers.h"
>
</File>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
<File
RelativePath=".app.ico"
>
</File>
<File
RelativePath=".app.rc"
>
</File>
<File
RelativePath=".BiteCtrl.resx"
SubType="Designer"
>
</File>
<File
RelativePath=".bitmapRedBorder.bmp"
>
</File>
<File
RelativePath=".bmpDot.bmp"
>
</File>
<File
RelativePath=".bmpGreen.bmp"
>
</File>
<File
RelativePath=".bmpRed.bmp"
>
</File>
<File
RelativePath=".bmpYellow.bmp"
>
</File>
</Filter>
<File
RelativePath=".ReadMe.txt"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
[/code]
I am using vs2012 Ultimate
Can anyone shed some light on this matter, i am absolutely out of ideas now?<br/>


View the full article
 
Back
Top