From 734d798365be50adbae7409afb4354a09ea8067f Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 29 Aug 2020 17:16:33 +0200 Subject: [PATCH] #2128: Add dotnet-format --check to build pipeline --- appveyor.yml | 2 ++ azure-pipelines.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 5b3fdceef..74ff7b057 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,6 +9,7 @@ image: Visual Studio 2019 install: - git submodule update --init --recursive - pwsh .\BuildTools\appveyor-install.ps1 +- dotnet tool install dotnet-format --tool-path tools nuget: account_feed: false @@ -29,6 +30,7 @@ test_script: after_test: - python BuildTools\tidy.py +- dotnet-format --check --verbosity diagnostic ILSpy.sln for: - branches: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2322f87e3..57e08fe21 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -45,6 +45,13 @@ jobs: version: '3.1.100' installationPath: $(Agent.ToolsDirectory)/dotnet + - task: DotNetCoreCLI@2 + displayName: 'Install dotnet format' + inputs: + command: 'custom' + custom: 'tool' + arguments: 'install dotnet-format --tool-path tools' + - script: pwsh .\BuildTools\pipelines-install.ps1 displayName: Install @@ -85,6 +92,13 @@ jobs: - script: python BuildTools\tidy.py displayName: Tab check + - task: DotNetCoreCLI@2 + displayName: dotnet-format check + inputs: + command: 'custom' + custom: 'format' + arguments: '--check --verbosity diagnostic ILSpy.sln' + - task: CopyFiles@2 displayName: Move VSIX to publish directory inputs: