VS 2003.net -> VS 2010

So, my issues is this: I've got some code that was written on vs 2003.net, and I have VS 2010 Ultimate. My issues isn't with the C++, it's with the compiler, and moving from one, to the other. It's eight projects in one solution. So I've put some of the compile time/linking information down there, from one of the projects, in the hopes the full data might give better insight. Thoughts?


Thank,
Jim.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
1
1>Build started 10/11/2012 3:06:30 PM.
1>Environment at start of build:
1>MSBuildExtensionsPath32 = C:\Program Files (x86)\MSBuild
1>MSBuildExtensionsPath64 = C:\Program Files\MSBuild
1>MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild
1>LocalAppData = C:\Documents and Settings\Jim\Local Settings\Application Data
1>ALLUSERSPROFILE = C:\Documents and Settings\All Users
1>APPDATA = C:\Documents and Settings\Jim\Application Data
1>CLASSPATH = .;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
1>CLIENTNAME = Console
1>CommonProgramFiles = C:\Program Files (x86)\Common Files
1>CommonProgramW6432 = C:\Program Files\Common Files
1>COMPUTERNAME = JIM-DEKSTOP
1>ComSpec = C:\WINDOWS\system32\cmd.exe
1>DXSDK_DIR = C:\Program Files (x86)\Microsoft DirectX 9.0 SDK (Summer 2004)\
1>FP_NO_HOST_CHECK = NO
1>HOMEDRIVE = C:
1>HOMEPATH = \Documents and Settings\Jim
1>LOGONSERVER = \\JIM-DEKSTOP
1>NUMBER_OF_PROCESSORS = 2
1>OS = Windows_NT
1>Path = %CommonProgramFiles%\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files (x86)\QuickTime\QTSystem\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Microchip\MPLAB C32 Suite\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Microsoft Visual Studio 2008 SDK\VisualStudioIntegration\Tools\Sandcastle\ProductionTools\
1>PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
1>PROCESSOR_ARCHITECTURE = x86
1>PROCESSOR_ARCHITEW6432 = AMD64
1>PROCESSOR_IDENTIFIER = AMD64 Family 15 Model 67 Stepping 3, AuthenticAMD
1>PROCESSOR_LEVEL = 15
1>PROCESSOR_REVISION = 4303
1>ProgramFiles = C:\Program Files (x86)
1>ProgramW6432 = C:\Program Files
1>QTJAVA = C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
1>SESSIONNAME = Console
1>SSH_AGENT_PID = 11092
1>SSH_AUTH_SOCK = /tmp/ssh-hBLpb10892/agent.10892


...

1>Task "Touch" (TaskId:12)
1>  Touching ".\..\..\Output\WorldServer\Release\WorldServer.unsuccessfulbuild". (TaskId:12)
1>Done executing task "Touch". (TaskId:12)
1>Done building target "InitializeBuildStatus" in project "WorldServer.vcxproj".: (TargetId:15)
1>Target "AssignProjectConfiguration" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
1>Target "_SplitProjectReferencesByFileExistence" skipped. Previously built successfully.
1>Target "BuildGenerateSourcesTraverse: (TargetId:16)" in file "c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\Documents and Settings\Jim\Desktop\VS_2010_Source\VS2010 Source\WORLDSERVER\WorldServer.vcxproj" (target "BuildGenerateSources" depends on it):
...

1>Target "ComputeMIDLGeneratedCompileInputs" skipped. Previously built successfully.
1>Target "ComputeCLInputPDBName: (TargetId:31)" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\Documents and Settings\Jim\Desktop\VS_2010_Source\VS2010 Source\WORLDSERVER\WorldServer.vcxproj" (target "_ClCompile" depends on it):
1>Done building target "ComputeCLInputPDBName" in project "WorldServer.vcxproj".: (TargetId:31)

...

MSBuildConsole_CancelEvent90aa6afd5d1242a1a2d6a19838db14cf  /c "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe"  /c /I..\DX_SDK /I..\boost_1_34_1\boost_1_34_1 /I..\_Network\Net\Include /I..\_Network\Misc\Include /I. /I..\_Network\Mcl\Include /I..\_DirectX /I..\..\resource /I..\_Common /I..\_network /I..\_Interface /I..\_AIInterface /Zi /nologo /W3 /WX- /O2 /Ob1 /Oy- /D WIN32 /D NDEBUG /D _WINDOWS /D _MBCS /GF /Gm- /EHsc /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Yc"stdafx.h" /Fp".\..\..\Output\WorldServer\Release/WorldServer.pch" /FAcs /Fa".\..\..\Output\WorldServer\Release/" /Fo".\..\..\Output\WorldServer\Release/" /Fd".\..\..\Output\WorldServer\Release/vc100.pdb" /FR".\..\..\Output\WorldServer\Release/" /Gd /TP /analyze- /errorReport:prompt StdAfx.cpp (TaskId:15)
1>  StdAfx.cpp (TaskId:15)

...


1>Project Performance Summary:
1>    10172 ms  C:\Documents and Settings\Jim\Desktop\VS_2010_Source\VS2010 Source\WORLDSERVER\WorldServer.vcxproj   1 calls
1>              10172 ms  build                                      1 calls
1>
1>Target Performance Summary:
1>        0 ms  _PrepareForBuild                           1 calls
1>        0 ms  _GenerateXMLData                           1 calls
1>        0 ms  _SelectedFiles                             1 calls
1>        0 ms  ComputeCLInputPDBName                      1 calls
1>        0 ms  _Xsd                                       1 calls
1>        0 ms  ResolveReferences                          1 calls
1>        0 ms  BuildGenerateSourcesTraverse               1 calls
1>        0 ms  ResolveProjectReferences                   1 calls
1>        0 ms  AfterBuildGenerateSourcesEvent             1 calls
1>        0 ms  AfterResolveReferences                     1 calls
1>        0 ms  PlatformPrepareForBuild                    1 calls
1>        0 ms  _GenerateWebServiceProxy                   1 calls
1>        0 ms  MakeDirsForMidl                            1 calls
1>        0 ms  GetFrameworkPaths                          1 calls
1>        0 ms  BuildCompileTraverse                       1 calls
1>        0 ms  BuildGenerateSources                       1 calls
1>        0 ms  PreBuildEvent                              1 calls
1>        0 ms  PrepareForBuild                            1 calls
1>        0 ms  BeforeClCompile                            1 calls
1>        0 ms  SelectClCompile                            1 calls
1>        0 ms  _DetermineManagedStateFromCL               1 calls
1>        0 ms  AfterBuildGenerateSources                  1 calls
1>        0 ms  BeforeBuildGenerateSources                 1 calls
1>        0 ms  SelectCustomBuild                          1 calls
1>        0 ms  GetReferenceAssemblyPaths                  1 calls
1>        0 ms  _Midl                                      1 calls
1>        0 ms  AfterMidl                                  1 calls
1>        0 ms  ComputeMIDLGeneratedCompileInputs          1 calls
1>        0 ms  _SplitProjectReferencesByFileExistence     1 calls
1>        0 ms  BeforeResolveReferences                    1 calls
1>       16 ms  ComputeReferenceCLInput                    1 calls
1>       31 ms  MakeDirsForCl                              1 calls
1>       47 ms  InitializeBuildStatus                      1 calls
1>       62 ms  SetBuildDefaultEnvironmentVariables        1 calls
1>      438 ms  _CheckForInvalidConfigurationAndPlatform   1 calls
1>     9578 ms  ClCompile                                  1 calls
1>Task Performance Summary:
1>        0 ms  ReadLinesFromFile                          1 calls
1>        0 ms  MakeDir                                    4 calls
1>       16 ms  WriteLinesToFile                           1 calls
1>       31 ms  Touch                                      1 calls
1>       31 ms  SetEnv                                     4 calls
1>      188 ms  Message                                    2 calls
1>     9484 ms  CL                                         1 calls
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:10.14
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Sorry, not meaning to bump, if there's a way to attach a .txt file, I would with complete build information.
I can't see the error. Where does it fail?

Is it a .NET project? There isn't really a problem per se migrating from VS 7.1 -> 10.0, I've done it on a huge legacy project. You should remember that VS10 doesn't have global settings anymore.
Good question, I don't think so, but I'll have to double check.

When I tried running it, it was giving me an error about a .sbr file.

Most of the errors were like:

1
2
3
1>Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('.\..\..\Output\WorldServer\Release\' != '' and !HasTrailingSlash('.\..\..\Output\WorldServer\Release\')).
1>Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')).
1>Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('.\..\..\Output\WorldServer\Release\' != '' and !HasTrailingSlash('.\..\..\Output\WorldServer\Release\')). 
Nope, it's not using anything of the .Net Framework
On the project that fails, open the project property pages. To to Configuration Properties->General.

Please post the Output Directory and Intermediate Directory settings.

Thanks.
What is a .sbr file ? It seems it is used by bscmake, but I never heard of those things before and I used VS2010 regulary. No .sbr files seems to exists on projects created by vs2010 itself.
http://msdn.microsoft.com/en-us/library/z6hhww5f(v=vs.100).aspx
It's a browser intermediarie file
First, sorry to confuse the issues, the .sbr was on 2008, not directly related with my current issues. Not that i could get it to compile there either.

Output, and Intermediate Directories for all of them are:

.\..\..\Output\*\Release\
.\..\..\Output\*\Release\

Thanks.

I don't know what that * means. Try this please.

For each project in the solution, and for each target (Debug, Release ...), change Configuration Properties->Linker->General->OutputFile to $(OutDir)$(TargetName)$(TargetExt)

For each project in the solution, and for each target (Debug, Release ...), change each entry in Configuration Properties->C/C++->Output Files to the default.

For each project in the solution, and for each target (Debug, Release ...), change Configuration Properties->General->Intermediate Directory to the default.

For each project in the solution, and for each target (Debug, Release ...), change Configuration Properties->General->Output Directory to $(SolutionDir)bin\$(Configuration)\
Topic archived. No new replies allowed.