diff --git a/build/azure-pipelines.yml b/build/azure-pipelines.yml index 20fda2335c..cd885983c3 100644 --- a/build/azure-pipelines.yml +++ b/build/azure-pipelines.yml @@ -176,10 +176,9 @@ stages: vmImage: 'windows-latest' steps: - task: UseDotNet@2 - displayName: Use .NET $(dotnetVersion) + displayName: Use .NET SDK from global.json inputs: - version: $(dotnetVersion) - includePreviewVersions: $(dotnetIncludePreviewVersions) + useGlobalJson: true - task: PowerShell@2 displayName: Install DocFX inputs: