diff --git a/.azure-pipelines/daily-build.yml b/.azure-pipelines/daily-build.yml new file mode 100644 index 000000000000..c06904329fd2 --- /dev/null +++ b/.azure-pipelines/daily-build.yml @@ -0,0 +1,19 @@ +# Please don't use ADO UI defined scheduled triggers because it takes precedence over YAML scheduled triggers. +# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/scheduled-triggers +schedules: +- cron: "0 0 * * *" + displayName: Daily Midnight Build + branches: + include: + - master + +pool: + vmImage: 'windows-2019' + +steps: +- task: ComponentGovernanceComponentDetection@0 + displayName: Component Detection + inputs: + scanType: 'Register' + verbosity: 'Normal' + alertWarningLevel: 'High' \ No newline at end of file diff --git a/.azure-pipelines/powershell-core.yml b/.azure-pipelines/powershell-core.yml index 936c4ee7418d..ebf4efa41d75 100644 --- a/.azure-pipelines/powershell-core.yml +++ b/.azure-pipelines/powershell-core.yml @@ -63,7 +63,7 @@ jobs: displayName: Test dependsOn: Build condition: succeeded() - timeoutInMinutes: 120 + timeoutInMinutes: 180 strategy: matrix: windows: diff --git a/.azure-pipelines/util/test-steps.yml b/.azure-pipelines/util/test-steps.yml index a5e4a18de597..9c380ffaaf69 100644 --- a/.azure-pipelines/util/test-steps.yml +++ b/.azure-pipelines/util/test-steps.yml @@ -9,6 +9,18 @@ steps: parameters: osName: ${{ parameters.osName }} +- task: UseDotNet@2 + displayName: 'Use .NET Core sdk' + inputs: + packageType: sdk + version: 2.1.x + +- task: UseDotNet@2 + displayName: 'Use .NET Core sdk' + inputs: + packageType: sdk + version: 3.1.x + - task: DotNetCoreCLI@2 displayName: Test inputs: diff --git a/tools/Common.Netcore.Dependencies.Test.targets b/tools/Common.Netcore.Dependencies.Test.targets index 9c616f4fb75a..e28d9560dac1 100644 --- a/tools/Common.Netcore.Dependencies.Test.targets +++ b/tools/Common.Netcore.Dependencies.Test.targets @@ -35,20 +35,20 @@ - - + + - - + + - - + + diff --git a/tools/VersionController/VersionController.Netcore.csproj b/tools/VersionController/VersionController.Netcore.csproj index 7531f277ada3..60da8a5e916e 100644 --- a/tools/VersionController/VersionController.Netcore.csproj +++ b/tools/VersionController/VersionController.Netcore.csproj @@ -25,8 +25,8 @@ - - + + diff --git a/tools/VersionController/packages.config b/tools/VersionController/packages.config index 26bf5866fc8d..278f8c1849a9 100644 --- a/tools/VersionController/packages.config +++ b/tools/VersionController/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file