From 3fef5d0221df23a0715eaaddb602b066c0523db4 Mon Sep 17 00:00:00 2001 From: Brandon Minnick <13558917+brminnick@users.noreply.github.com> Date: Mon, 5 Apr 2021 15:54:19 -0700 Subject: [PATCH] Fix CI Build Errors on Build Windows Samples job (#1173) * Update azure-pipelines.yml * Clean + Build * Revert "Clean + Build" This reverts commit e93ca8221bbaed11388de124917118ba4bf21cc2. * Add `dotnet clean` * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Add link --- azure-pipelines.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2e4f772ed..80e163c01 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,6 +61,15 @@ jobs: pool: vmImage: windows-2019 steps: + - task: CmdLine@2 + displayName: 'Clear Local NuGet Cache' #https://github.com/actions/virtual-environments/issues/1090#issuecomment-748452120 + inputs: + script: 'nuget locals all -clear' + - task: MSBuild@1 + displayName: 'Clean Solution' + inputs: + solution: $(PathToSln) + msbuildArguments: '/t:Clean' - task: MSBuild@1 displayName: Build Solution inputs: @@ -88,6 +97,15 @@ jobs: inputs: version: $(NETCORE_TEST_VERSION_2_1) includePreviewVersions: false + - task: CmdLine@2 + displayName: 'Clear Local NuGet Cache' #https://github.com/actions/virtual-environments/issues/1090#issuecomment-748452120 + inputs: + script: 'nuget locals all -clear' + - task: MSBuild@1 + displayName: 'Clean Solution' + inputs: + solution: $(PathToSln) + msbuildArguments: '/t:Clean' # if this is a tagged build, then update the version number - powershell: | $buildSourceBranch = "$(Build.SourceBranch)"