diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0f611f3cc..b2fcfe3c9 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,4 +16,5 @@ jobs: - visualstudio steps: - template: build/template-install-dependencies.yaml + - template: build/template-build.yaml - template: build/template-run-unit-tests.yaml diff --git a/build/template-build.yaml b/build/template-build.yaml new file mode 100644 index 000000000..785dbef2f --- /dev/null +++ b/build/template-build.yaml @@ -0,0 +1,19 @@ +# template-build.yaml +# Restore and build the solution so that the test assemblies exist before +# the VSTest steps run. This is required on Microsoft-hosted (ephemeral) +# agents, which start from a clean workspace with no pre-built output. + +steps: +- task: DotNetCoreCLI@2 + displayName: 'Install wasm-tools workload' + inputs: + command: 'custom' + custom: 'workload' + arguments: 'install wasm-tools' + +- task: DotNetCoreCLI@2 + displayName: 'Build solution (Release)' + inputs: + command: 'custom' + custom: 'msbuild' + arguments: 'Microsoft.Identity.Web.sln -r -t:build -verbosity:m -property:Configuration=Release'