Can you please help me to understand better the value of SccLocalPath in a VS2003 solution file? I have two solutions files where SccLocalPath contains different values and seems to work OK. I would like to know how Vault interprets the real path for a web project in case the solution is moved. Below is a test solution file to illustrate the question.
VS2003, create blank solution, add to source control. Then add new web project, check in (and add project under the solution Vault Folder).
Code: Select all
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyTestWebApp", "http://localhost/MyTestWebApp/MyTestWebApp.csproj", "{3A55E6C7-557E-4D4B-B1F5-F4D92FE71416}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SourceCodeControl) = preSolution
SccNumberOfProjects = 2
SccLocalPath0 = .
CanCheckoutShared = false
SolutionUniqueID = {4AA1C259-47AA-4F01-948F-0045D847A915}
SccProjectUniqueName1 = http://localhost/MyTestWebApp/MyTestWebApp.csproj
SccProjectName1 = $/DangerousExperiment/TESTSolution/MyTestWebApp
SccLocalPath1 = ..\\..\\inetpub\\wwwroot\\MyTestWebApp
CanCheckoutShared = false
SccProjectEnlistmentChoice1 = 2
EndGlobalSection
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{3A55E6C7-557E-4D4B-B1F5-F4D92FE71416}.Debug.ActiveCfg = Debug|.NET
{3A55E6C7-557E-4D4B-B1F5-F4D92FE71416}.Debug.Build.0 = Debug|.NET
{3A55E6C7-557E-4D4B-B1F5-F4D92FE71416}.Release.ActiveCfg = Release|.NET
{3A55E6C7-557E-4D4B-B1F5-F4D92FE71416}.Release.Build.0 = Release|.NET
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
But surprisingly, the solution file seems not to be aware of the new web root. SccLocalPath1 still keeps its old value (..\\..\\inetpub\\wwwroot\\MyTestWebApp)
Question 1: What is the definition of SccLocalPath and how does VS2003 know that the new file location is in wwwroot_Release and not in wwwroot?
Question 2: I edit the solution file and change:
Code: Select all
SccLocalPath1 = ..\\..\\inetpub\\wwwroot\\MyTestWebApp
to:
SccLocalPath1 = http://localhost/MyTestWebApp/
Thanks in advance for any help.