From 577fbd194072e36a9e009365fc6db26ac91e96f0 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Sun, 7 Jun 2020 14:48:23 -0700 Subject: [PATCH] Validate Roslyn CodeStyle. --- azure-pipelines.yml | 4 +++- validate.rsp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2ee8396e1a..15b01af228 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -111,7 +111,9 @@ jobs: vmImage: 'vs2017-win2016' timeoutInMinutes: 5 steps: - - script: dotnet run --project ./src/dotnet-format.csproj -- @validate.rsp + - script: dotnet publish ./src/dotnet-format.csproj -c Release + displayName: Publish dotnet-format + - script: dotnet ./artifacts/bin/dotnet-format/Release/netcoreapp2.1/publish/dotnet-format.dll @validate.rsp displayName: Run dotnet-format - task: PublishBuildArtifacts@1 displayName: Publish Logs diff --git a/validate.rsp b/validate.rsp index 0288aac783..a73c2fd40b 100644 --- a/validate.rsp +++ b/validate.rsp @@ -1,5 +1,5 @@ ---folder -. +./format.sln +--fix-style --exclude ./tests/projects/ --check