PricingDownload
Product

Platform

All features44 capabilities, from IDE to CICompliance KitsISO 26262, DO-178C, IEC 62304...AI GovernanceControl AI-generated C/C++ codeWhat’s new in 2027Latest version highlightsScreenshotsSee the product in action

Analyze & improve

Coding standardsMISRA, CERT, CWE, AUTOSARArchitecture & dependenciesGraphs, matrix, cyclesTechnical debtMeasured in hours and dollarsQuality gatesStop regressions in CISmart Code CityYour codebase in 3D

Integrations

IDE pluginsVisual Studio, VS Code, CLion...CI/CD pipelinesJenkins, Azure DevOps, GitHub, GitLabSonarQube pluginC/C++ results in SonarQubeExternal analyzersClang-Tidy, Cppcheck, coverageFeature on Demand
Solutions

By need

Functional safetyCompliance kits per standardCoding standardsMISRA, CERT, AUTOSAR, ISO...Legacy modernizationRefactor large C/C++ safelyCode auditExpert review of your codebaseM&A due diligenceAssess technical health fast

By role

DevelopersSoftware architectsTech leadsDevOps engineersEngineering managersProject managers

CTOsCIOs / IT leadersQA engineersSecurity leadersComplianceConsultantsRequest a guided PoC
Industries

Safety-critical

AutomotiveISO 26262, MISRA, AUTOSARAerospace & DefenseDO-178C programsMedical DevicesIEC 62304 softwareEnergy & UtilitiesIEC 61508 systemsEmbedded SystemsFirmware and devices

Enterprise

Financial ServicesTrading and paymentsGame DevelopmentEngines and large C++Software VendorsCommercial C/C++ productsGovernmentAgencies and contractorsAll industries & case studies
Resources

Learn

DocumentationGuides, rules and CI setupKnowledge baseFrequently asked questionsBlogC and C++ code quality articlesRelease notesEvery version since 2009

Customers

Case studiesSuccess storiesTestimonialsWhat users sayOur customersCompanies using CppDependGold Code QualityOpen source projects we rate

Programs & company

Feature on DemandMissing features built for freeFree for open sourceLicenses for OSS and studentsContact usSales and supportEULALicense agreement
Docs
Documentation

CI/CD Integration

TFS Integration

1 min readCI/CD IntegrationCppDepend 2027

Integrating CppDepend with Team Foundation Server 2008

First create a CppDepend project (.xml or .cdproj) or use an existing one. It should be in source control so you can reference it for TFS.

Adding a MSBuild target to your solution

  • Add a post-build task to an existing project, or create a specific msbuild project for CppDepend and add it to the solution to build. The task itself can be either stand-alone:
    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  <Target Name="CppDepend" >    <PropertyGroup>      <CppDependPath>c:\tools\CppDepend\CppDepend.console.exe</CppDependPath>      <CppDependProject>$(SolutionDir)MyProject.cdproj</CppDependProject>      <CppDependOut>$(TargetDir)CppDepend</CppDependOut>    </PropertyGroup>    <Exec      Command='"$(CppDependPath)" "$(CppDependProject)" /OutDir "$(CppDependOut)" '/>  </Target></Project>
  • Where:
    • CppDependPath: is the path to the CppDepend console executable (you need a valid Build Machine license on the server)
    • CppDependProject: is the path to the CppDepend project
    • CppDependOut: is the path were the reports will be generated
  • You can also use the built-in CppDepend MSBuild task:
    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">  <PropertyGroup>    <CppDependPath>c:\tools\CppDepend\</CppDependPath>    <CppDependProject>$(SolutionDir)MyProject.cdproj</CppDependProject>  </PropertyGroup>  <UsingTask AssemblyFile="$(CppDependPath)\MSBuild\CppDepend.Build.MSBuild.dll"             TaskName="CppDependTask" />  <Target Name="CppDepend" >    <CppDependTask CppDependConsoleExePath="$(CppDependPath)"       ProjectFilePath="$(CppDependProject)" />  </Target></Project>

You can simply add one of these targets to an existing project and add the content of the project element inside the element of the project to build.

Accessing the report files

Once TFS has built the build project, the CppDepend report will be inside the Drops folder, under the relevant build version.

Integrating CppDepend with Team Foundation Server 2010

Since the TFS build project format has completely changed between TFS 2008 and TFS 2010, the options are slightly different.

Add the CppDepend target to an existing project

Using the technique outlined above, override the in the vcxproj to automatically run CppDepend in TFS.

Was this page helpful?
Evaluating CppDepend on a production codebase?Get a guided proof of concept with our static analysis architects.
Request a PoC