diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index 036682b65..6df7e55b9 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -155,6 +155,17 @@ jobs: parameters: ContinueOnError: false + # Base Path Length calculated based on Visual Studio's defaults for projects. + # By default, Visual Studio puts projects in a folder structure like this: + # C:\Users\\source\repos\. That is 34 characters before project. + # The default project name for the C++ SDK is azure-sdk-for-cpp. That is 18 additional characters (52). + # Assuming that the user is building with the default cmake presets, cmake will create a build folder + # which is about 25 characters long (x64-static-debug-perftests). + - template: /eng/common/pipelines/templates/steps/verify-path-length.yml + parameters: + SourceDirectory: $(Build.SourcesDirectory) + BasePathLength: 75 + - template: /eng/common/pipelines/templates/steps/verify-links.yml parameters: ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: