TomFr

Hi,

I have a problem with a number of VS2005 solution files (converted from VS2003).

The solution builds but VS keeps updating the solution file which requires a check-out etc.

The problem is caused as far as I can see by references to non existing projects!

The solution files have references (GUIDs) to project files in the GlobalSection(ProjectConfigurationPlatforms). However some of the references are not listed at the top of the solution file and I cannot find (text search) any project file with such a GUID. If I remove the references then VS adds new references (again to non existing projects).

The solution we have contains both vcproj files but also icproj (Intell compiler) with nested vcproj files.

Does anybody have an idea what might cause this problem

OR

Does anybody have suggestions for debugging this problem

Thanks in advance

TomFr

Example:

GlobalSection(ProjectConfigurationPlatforms) = postSolution
{35A5CE92-181C-4238-965E-870A39BA8D8D}.Debug.ActiveCfg = Debug|Win32
{35A5CE92-181C-4238-965E-870A39BA8D8D}.Debug.Build.0 = Debug|Win32
...

...

{84F9DB36-A887-44F6-B3AA-520FE484DC3A}.Release.ActiveCfg = Release|Win32 <== Non existing Reference.
{84F9DB36-A887-44F6-B3AA-520FE484DC3A}.Release.Build.0 = Release|Win32
EndGlobalSection




Re: Visual C++ General VS2005 / corrupt solution file / References to non existing projects

Bite Qiu - MSFT

Does this happens when your solution contains only vcproj files Usually the order of project listed in GlobalSection(ProjectConfigurationPlatforms) is the same as the order that projects been declared(between Project and EndProject):

Code Snippet

Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testWin32Console", "testWin32Console\testWin32Console.vcproj", "{AD4B5C64-0F21-407D-8F05-40DA29A5BB8C}"
EndProject

And the bolded GUID should be appear in the "ProjectConfigurationPlatforms" section and vice versa. If you problem persist after remove icproj, could you paste out all contents of .sln file






Re: Visual C++ General VS2005 / corrupt solution file / References to non existing projects

TomFr

The problem is gone when I remove all the icproj files from the solution (below the complete solution file is shown).

Note that I added some comment while analysing the file. What I see is 2 things (both at the end of the file):

- The 3 GUIDs (these are each updated) that I cannot find in our source code tree (text search of all files)

- The are a number of GUIDs for which I find multiple vcproj files. In other words I have more than one vcproj file in our source code tree that has the SAME ProjectGUI.

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{EAF909A5-FA59-4C3D-9431-0FCC20D5BCF9}") = "C_Test", "..\LogTrace\test\C_Test.icproj", "{6846A8FF-0F5A-474C-B418-F12DD1AA4881}"
EndProject
Project("{EAF909A5-FA59-4C3D-9431-0FCC20D5BCF9}") = "Cpp_Test", "..\LogTrace\test\Cpp_Test.icproj", "{9E274F8E-0BBD-4B32-9685-0C86506549B3}"
EndProject
Project("{EAF909A5-FA59-4C3D-9431-0FCC20D5BCF9}") = "Cpp_LoaderSaverTest", "..\LoaderSaver\test\build\Cpp_LoaderSaverTest.icproj", "{32294824-A5E8-43C4-9DBB-91BEE720D3CB}"
EndProject
Project("{EAF909A5-FA59-4C3D-9431-0FCC20D5BCF9}") = "C_LoaderSaverTest", "..\LoaderSaver\test\build\C_LoaderSaverTest.icproj", "{95C1A550-0AAF-431E-B502-31EBA7263F38}"
EndProject
Project("{EAF909A5-FA59-4C3D-9431-0FCC20D5BCF9}") = "TestPrfLib-console", "..\LoaderSaver\PrfLib\test\testprflib-console.icproj", "{A2454316-1642-43E6-9DB3-134C099FB171}"
EndProject
Project("{EAF909A5-FA59-4C3D-9431-0FCC20D5BCF9}") = "Cpp_FastMiscLib_test", "..\FastMiscLib\test\build\Cpp_FastMiscLibTest.icproj", "{F3E9CE56-E55A-4C61-83FE-434CAF7426BE}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HPDataTransportDistTest", "..\HPDataTransport\test\CPPUnit\build\HPDataTransportDistTest.vcproj", "{FFF9B77A-B493-479F-A994-70AB3E6DD714}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HPDataTransportTest", "..\HPDataTransport\test\CPPUnit\build\HPDataTransportTest.vcproj", "{87693E48-F970-4258-B804-9ECB1158668B}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DVLPLibTestCppUnit", "..\DVLPLib\build\DVLPLibTestCppUnit.vcproj", "{82931912-91A5-490B-991C-1C658F483DFB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
DebugNoCPPUnit|Win32 = DebugNoCPPUnit|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
C_Test
{6846A8FF-0F5A-474C-B418-F12DD1AA4881}.Debug|Win32.ActiveCfg = Debug|Win32
{6846A8FF-0F5A-474C-B418-F12DD1AA4881}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{6846A8FF-0F5A-474C-B418-F12DD1AA4881}.Release|Win32.ActiveCfg = Release|Win32

CPP_Test
{9E274F8E-0BBD-4B32-9685-0C86506549B3}.Debug|Win32.ActiveCfg = Debug|Win32
{9E274F8E-0BBD-4B32-9685-0C86506549B3}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{9E274F8E-0BBD-4B32-9685-0C86506549B3}.Release|Win32.ActiveCfg = Release|Win32

Cpp_LoaderSaverTest.icproj
{32294824-A5E8-43C4-9DBB-91BEE720D3CB}.Debug|Win32.ActiveCfg = Debug|Win32
{32294824-A5E8-43C4-9DBB-91BEE720D3CB}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{32294824-A5E8-43C4-9DBB-91BEE720D3CB}.Release|Win32.ActiveCfg = Release|Win32
C_LoaderSaverTest.icproj
{95C1A550-0AAF-431E-B502-31EBA7263F38}.Debug|Win32.ActiveCfg = Debug|Win32
{95C1A550-0AAF-431E-B502-31EBA7263F38}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{95C1A550-0AAF-431E-B502-31EBA7263F38}.Release|Win32.ActiveCfg = Release|Win32
testprflib-console.icproj
{A2454316-1642-43E6-9DB3-134C099FB171}.Debug|Win32.ActiveCfg = Debug|Win32
{A2454316-1642-43E6-9DB3-134C099FB171}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{A2454316-1642-43E6-9DB3-134C099FB171}.Release|Win32.ActiveCfg = Release|Win32
Cpp_FastMiscLibTest.icproj
{F3E9CE56-E55A-4C61-83FE-434CAF7426BE}.Debug|Win32.ActiveCfg = Debug|Win32
{F3E9CE56-E55A-4C61-83FE-434CAF7426BE}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{F3E9CE56-E55A-4C61-83FE-434CAF7426BE}.Release|Win32.ActiveCfg = Release|Win32
HPDataTransportDistTest.vcproj
{FFF9B77A-B493-479F-A994-70AB3E6DD714}.Debug|Win32.ActiveCfg = Debug|Win32
{FFF9B77A-B493-479F-A994-70AB3E6DD714}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{FFF9B77A-B493-479F-A994-70AB3E6DD714}.DebugNoCPPUnit|Win32.Build.0 = Debug|Win32
{FFF9B77A-B493-479F-A994-70AB3E6DD714}.Release|Win32.ActiveCfg = Release|Win32
HPDataTransportTest.vcproj
{87693E48-F970-4258-B804-9ECB1158668B}.Debug|Win32.ActiveCfg = Debug|Win32
{87693E48-F970-4258-B804-9ECB1158668B}.DebugNoCPPUnit|Win32.ActiveCfg = DebugNoCPPUnit|Win32
{87693E48-F970-4258-B804-9ECB1158668B}.DebugNoCPPUnit|Win32.Build.0 = DebugNoCPPUnit|Win32
{87693E48-F970-4258-B804-9ECB1158668B}.Release|Win32.ActiveCfg = Release|Win32
..\DVLPLib\build\DVLPLibTestCppUnit.vcproj
{82931912-91A5-490B-991C-1C658F483DFB}.Debug|Win32.ActiveCfg = Debug|Win32
{82931912-91A5-490B-991C-1C658F483DFB}.Debug|Win32.Build.0 = Debug|Win32
{82931912-91A5-490B-991C-1C658F483DFB}.DebugNoCPPUnit|Win32.ActiveCfg = DebugNoCPPUnit|Win32
{82931912-91A5-490B-991C-1C658F483DFB}.DebugNoCPPUnit|Win32.Build.0 = DebugNoCPPUnit|Win32
{82931912-91A5-490B-991C-1C658F483DFB}.Release|Win32.ActiveCfg = Release|Win32
{82931912-91A5-490B-991C-1C658F483DFB}.Release|Win32.Build.0 = Release|Win32
\LogTrace\Test\C_Test ==> nested
{3ED0A08B-6C85-4268-ACA1-4A5AF7461777}.Debug|Win32.ActiveCfg = Debug|Win32
{3ED0A08B-6C85-4268-ACA1-4A5AF7461777}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{3ED0A08B-6C85-4268-ACA1-4A5AF7461777}.Release|Win32.ActiveCfg = Release|Win32
Cpp_Test.vcproj
{3ED0A08B-6C85-4268-ACA1-4A5AF7461666}.Debug|Win32.ActiveCfg = Debug|Win32
{3ED0A08B-6C85-4268-ACA1-4A5AF7461666}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{3ED0A08B-6C85-4268-ACA1-4A5AF7461666}.Release|Win32.ActiveCfg = Release|Win32
Cpp_LoaderSaver.vcproj
{5977CDD9-C462-4A79-9EEC-7CB85F0E383D}.Debug|Win32.ActiveCfg = Debug|Win32
{5977CDD9-C462-4A79-9EEC-7CB85F0E383D}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{5977CDD9-C462-4A79-9EEC-7CB85F0E383D}.Release|Win32.ActiveCfg = Release|Win32
C_LoaderSaver.vcproj
{4F79D497-3E0A-4FD8-BA30-900F9B18FFF0}.Debug|Win32.ActiveCfg = Debug|Win32
{4F79D497-3E0A-4FD8-BA30-900F9B18FFF0}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{4F79D497-3E0A-4FD8-BA30-900F9B18FFF0}.Release|Win32.ActiveCfg = Release|Win32
Refers to several projects
{A147D11E-4E9E-43AB-BE00-BC50E7AC78C8}.Debug|Win32.ActiveCfg = Debug|Win32
{A147D11E-4E9E-43AB-BE00-BC50E7AC78C8}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{A147D11E-4E9E-43AB-BE00-BC50E7AC78C8}.Release|Win32.ActiveCfg = Release|Win32
Not found
{EC52F470-118C-4DA8-8C77-B3A4918E8310}.Debug|Win32.ActiveCfg = Debug|Win32
{EC52F470-118C-4DA8-8C77-B3A4918E8310}.DebugNoCPPUnit|Win32.ActiveCfg = Debug|Win32
{EC52F470-118C-4DA8-8C77-B3A4918E8310}.Release|Win32.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection