Dies ist eine alte Version des Dokuments!


CMake und TFS

Für die Bindings einer Visual Studio Solution mit dem TFS-Server werden folgende Einträge angelegt (Beispiele aus ImageTo3D).

Unter dem Abschnitt Global im Solution-File:

	GlobalSection(TeamFoundationVersionControl) = preSolution
		SccNumberOfProjects = 3
		SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
		SccTeamFoundationServer = http://tfs-server.ntb.ch:8080/tfs/classcad
		SccProjectUniqueName0 = 3DReconstruction\\3DReconstruction.vcxproj
		SccProjectName0 = 3DReconstruction
		SccAuxPath0 = http://tfs-server.ntb.ch:8080/tfs/classcad
		SccLocalPath0 = 3DReconstruction
		SccProvider0 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
		SccProjectUniqueName1 = 3DRecConsole\\3DRecConsole.vcxproj
		SccProjectName1 = 3DRecConsole
		SccAuxPath1 = http://tfs-server.ntb.ch:8080/tfs/classcad
		SccLocalPath1 = 3DRecConsole
		SccProvider1 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
		SccProjectUniqueName2 = VanishingPointDetection\\VanishingPointDetection.vcxproj
		SccProjectName2 = VanishingPointDetection
		SccAuxPath2 = http://tfs-server.ntb.ch:8080/tfs/classcad
		SccLocalPath2 = VanishingPointDetection
		SccProvider2 = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
	EndGlobalSection

Sowie im Projektfile unter der Propertygroup Globals:

  <PropertyGroup Label="Globals">
    <ProjectGUID>{180ABFA3-1346-484E-8843-4E777FC7BFE9}</ProjectGUID>
    <Keyword>Win32Proj</Keyword>
    <Platform>Win32</Platform>
    <ProjectName>ImageTo3D</ProjectName>
    <SccProjectName>SAK</SccProjectName>
    <SccAuxPath>SAK</SccAuxPath>
    <SccLocalPath>SAK</SccLocalPath>
    <SccProvider>SAK</SccProvider>
  </PropertyGroup>
  

Für jedes verbundene Projekt besteht ein Eintrag in der Solution mit den Angaben zur TFS-URL sowie dem Pfad innerhalb des Workspaces. Sobald das Projekt gebunden ist, stehen in den Scc* Einträgen des Projektes der Wert SAK für Should already know - soll heissen, dass die Einstellungen aus der Solution kommen.