From a7f58e865729e3af3ba91c24a5c6a5df9edf4ddb Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 24 Oct 2020 10:57:14 +0200 Subject: [PATCH] Fix build and use specific version of dotnet-format. --- ICSharpCode.Decompiler/IL/Transforms/DelegateConstruction.cs | 2 +- appveyor.yml | 2 +- azure-pipelines.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ICSharpCode.Decompiler/IL/Transforms/DelegateConstruction.cs b/ICSharpCode.Decompiler/IL/Transforms/DelegateConstruction.cs index 2b78ecf37..a87253dca 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/DelegateConstruction.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/DelegateConstruction.cs @@ -162,7 +162,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms } ILFunction TransformDelegateConstruction( - ILInstruction value, IMethod targetMethod, + ILInstruction value, IMethod targetMethod, ILInstruction target, IType delegateType) { if (!IsAnonymousMethod(decompilationContext.CurrentTypeDefinition, targetMethod)) diff --git a/appveyor.yml b/appveyor.yml index 8b9b0dd07..37b094854 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,7 +13,7 @@ init: install: - git submodule update --init --recursive - pwsh .\BuildTools\appveyor-install.ps1 -- dotnet tool install dotnet-format --tool-path BuildTools +- dotnet tool install dotnet-format --tool-path BuildTools --version 4.1.131201 nuget: account_feed: false diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e087c1aea..4ef922dce 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -52,7 +52,7 @@ jobs: inputs: command: 'custom' custom: 'tool' - arguments: 'install dotnet-format --tool-path $(Agent.ToolsDirectory)/dotnet-format' + arguments: 'install dotnet-format --tool-path $(Agent.ToolsDirectory)/dotnet-format --version 4.1.131201' - script: pwsh .\BuildTools\pipelines-install.ps1 displayName: Install