How to specify Cake Tool version on yaml task in Azure devops pipelines

0 votes

I have this YAML task to run a build. cake file.

- task: cake-build.cake.cake-build-task.Cake@2
  displayName: 'Build Sources'
  inputs:
    script: devops/build.cake
    target: Default
    verbosity: Normal
    arguments: '--Configuration="$(build.configuration)" --Platform="$(build.platform)" --artifactsPath="$(Build.ArtifactStagingDirectory)"'

When ever this is executed it always installs the latest version of Cake.Tool. This a section of the pipelines logs:

2021-10-25T20:52:28.6148998Z ==============================================================================
2021-10-25T20:52:28.6149081Z Task         : Cake
2021-10-25T20:52:28.6149119Z Description  : Build with Cake
2021-10-25T20:52:28.6149153Z Version      : 2.1.0
2021-10-25T20:52:28.6149199Z Author       : Patrik Svensson
2021-10-25T20:52:28.6149233Z Help         : [More Information about Cake](https://cakebuild.net)
2021-10-25T20:52:28.6149267Z ==============================================================================
2021-10-25T20:52:29.0331876Z =====================================================
2021-10-25T20:52:29.0332236Z Root = D:\Agents\00\_work\265\s\devops
2021-10-25T20:52:29.0332411Z Tools = D:\Agents\00\_work\265\s\devops\tools
2021-10-25T20:52:29.0332915Z Cake Tool Path = D:\Agents\00\_work\265\s\devops\tools\dotnet-cake.exe
2021-10-25T20:52:29.0334592Z Package Feed = 
2021-10-25T20:52:29.0335733Z Running with system diagnostics
2021-10-25T20:52:29.0336048Z =====================================================
2021-10-25T20:52:29.0339302Z Installing Cake Tool (Latest)...
2021-10-25T20:52:29.0577395Z [command]"C:\Program Files\dotnet\dotnet.exe" tool install --tool-path D:\Agents\00\_work\265\s\devops\tools/ Cake.Tool
2021-10-25T20:52:37.3622249Z You can invoke the tool using the following command: dotnet-cake
2021-10-25T20:52:37.3622761Z Tool 'cake.tool' (version '1.3.0') was successfully installed.
2021-10-25T20:52:37.3766624Z 

The 1.3.0.  version is installed here. How can I change it to version 1.0.0 for instance?

Apr 22, 2022 in Other DevOps Questions by Kichu
• 19,050 points
401 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
0 answers

How do I add the azure-devops commands to the Azure CLI in an offline on-premise server?

I wanted to add the azure-DevOps extension to the Azure ...READ MORE

Apr 19, 2022 in Other DevOps Questions by Kichu
• 19,050 points
356 views
0 votes
0 answers
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP