Replies: 1 comment 3 replies
-
With Cake < 1.1.0 you'll need to add Cake.DotNetToolModule do have support for the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying this import:
#tool dotnet:?package=GitVersion.Tool&version=5.6.6
and it fails on the dotnet scheme, when targeting CoreCLR 1.0.0 do it need an addin?
Code point:
I got it from here: #3154
Here is my output
2021-04-14T18:33:09.2862392Z ##[debug]Evaluating condition for step: 'PowerShell Script'
2021-04-14T18:33:09.2864069Z ##[debug]Evaluating: SucceededNode()
2021-04-14T18:33:09.2864586Z ##[debug]Evaluating SucceededNode:
2021-04-14T18:33:09.2865593Z ##[debug]=> True
2021-04-14T18:33:09.2866128Z ##[debug]Result: True
2021-04-14T18:33:09.2866717Z ##[section]Starting: PowerShell Script
2021-04-14T18:33:09.2991915Z ==============================================================================
2021-04-14T18:33:09.2992226Z Task : PowerShell
2021-04-14T18:33:09.2992503Z Description : Run a PowerShell script on Linux, macOS, or Windows
2021-04-14T18:33:09.2992776Z Version : 2.180.1
2021-04-14T18:33:09.2992996Z Author : Microsoft Corporation
2021-04-14T18:33:09.2993324Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-04-14T18:33:09.2993709Z ==============================================================================
2021-04-14T18:33:10.2112055Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
2021-04-14T18:33:10.3921356Z ##[debug]Entering D:\a_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.180.1\powershell.ps1.
2021-04-14T18:33:10.4015331Z ##[debug]Loading resource strings from: D:\a_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.180.1\task.json
2021-04-14T18:33:10.4507302Z ##[debug]Loaded 11 strings.
2021-04-14T18:33:10.4508573Z ##[debug]SYSTEM_CULTURE: 'en-US'
2021-04-14T18:33:10.4514712Z ##[debug]Loading resource strings from: D:\a_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.180.1\Strings\resources.resjson\en-US\resources.resjson
2021-04-14T18:33:10.4775068Z ##[debug]Loaded 11 strings.
2021-04-14T18:33:10.5022120Z ##[debug]INPUT_ERRORACTIONPREFERENCE: 'stop'
2021-04-14T18:33:10.5092406Z ##[debug]INPUT_SHOWWARNINGS: 'false'
2021-04-14T18:33:10.5095469Z ##[debug] Converted to bool: False
2021-04-14T18:33:10.5120613Z ##[debug]INPUT_FAILONSTDERR: 'false'
2021-04-14T18:33:10.5138364Z ##[debug] Converted to bool: False
2021-04-14T18:33:10.5161945Z ##[debug]INPUT_IGNORELASTEXITCODE: 'false'
2021-04-14T18:33:10.5179333Z ##[debug] Converted to bool: False
2021-04-14T18:33:10.5204380Z ##[debug]INPUT_PWSH: 'false'
2021-04-14T18:33:10.5222536Z ##[debug] Converted to bool: False
2021-04-14T18:33:10.5247696Z ##[debug]INPUT_WORKINGDIRECTORY: 'D:\a\1\s'
2021-04-14T18:33:10.5381953Z ##[debug]Asserting container path exists: 'D:\a\1\s'
2021-04-14T18:33:10.5409217Z ##[debug]INPUT_TARGETTYPE: 'filePath'
2021-04-14T18:33:10.5445775Z ##[debug]INPUT_FILEPATH: 'D:\a\1\s\build\build_cake.ps1'
2021-04-14T18:33:10.5466039Z ##[debug]Asserting leaf path exists: 'D:\a\1\s\build\build_cake.ps1'
2021-04-14T18:33:10.5510319Z ##[debug]INPUT_ARGUMENTS: '--Target=Deploy --ZipProjects "XXXXX2.Mobile.Api=" --SolutionFilePath "XXXXX2.Mobile.Api.sln" --StartUpProject "" --DomainProject "" --DomainOutputSql "" --DbContext ""'
2021-04-14T18:33:10.5551344Z Generating script.
2021-04-14T18:33:10.5608022Z Formatted command: . 'D:\a\1\s\build\build_cake.ps1' --Target=Deploy --ZipProjects "XXXXX2.Mobile.Api=" --SolutionFilePath "XXXXX2.Mobile.Api.sln" --StartUpProject "" --DomainProject "" --DomainOutputSql "" --DbContext ""
2021-04-14T18:33:10.5865911Z ##[debug]AGENT_VERSION: '2.184.2'
2021-04-14T18:33:10.5953306Z ##[debug]AGENT_TEMPDIRECTORY: 'D:\a_temp'
2021-04-14T18:33:10.5975074Z ##[debug]Asserting container path exists: 'D:\a_temp'
2021-04-14T18:33:10.6390790Z ##[debug]Asserting leaf path exists: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
2021-04-14T18:33:10.6410062Z ========================== Starting Command Output ===========================
2021-04-14T18:33:10.6533701Z ##[debug]Entering Invoke-VstsTool.
2021-04-14T18:33:10.6645135Z ##[debug] Arguments: '-NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\d17a9aa3-1653-440d-ba37-0414450ae28b.ps1'"'
2021-04-14T18:33:10.6665272Z ##[debug] FileName: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'
2021-04-14T18:33:10.6684582Z ##[debug] WorkingDirectory: 'D:\a\1\s'
2021-04-14T18:33:10.6747625Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\d17a9aa3-1653-440d-ba37-0414450ae28b.ps1'"
2021-04-14T18:33:11.0184803Z Preparing to run build script...
2021-04-14T18:33:11.0642726Z Tools: D:\a\1\s\build\tools
2021-04-14T18:33:11.0722131Z Tools: D:\a\1\s\build\tools\Addins
2021-04-14T18:33:17.8694267Z Start testing Cake path.
2021-04-14T18:33:17.8769185Z Running build script...
2021-04-14T18:33:24.4925289Z Looking for modules...
2021-04-14T18:33:25.3982822Z GET https://pkgs.dev.azure.com/XXXXXequip/_packaging/486904e9-71fc-48f1-908f-a824f8b3c40f/nuget/v3/registrations2-semver2/XXXXX.cake.core/index.json
2021-04-14T18:33:26.2786938Z OK https://pkgs.dev.azure.com/XXXXXequip/_packaging/486904e9-71fc-48f1-908f-a824f8b3c40f/nuget/v3/registrations2-semver2/XXXXX.cake.core/index.json 861ms
2021-04-14T18:33:26.4038588Z Missing C:\Users\VssAdministrator.nuget\packages\XXXXX.cake.core\0.1.632\XXXXX.cake.core.0.1.632.nupkg
2021-04-14T18:33:26.4084032Z CACHE https://pkgs.dev.azure.com/XXXXXequip/_packaging/486904e9-71fc-48f1-908f-a824f8b3c40f/nuget/v3/registrations2-semver2/XXXXX.cake.core/index.json
2021-04-14T18:33:26.5072109Z GET https://pkgs.dev.azure.com/XXXXXequip/_packaging/486904e9-71fc-48f1-908f-a824f8b3c40f/nuget/v3/flat2/XXXXX.cake.core/0.1.632/XXXXX.cake.core.0.1.632.nupkg
2021-04-14T18:33:27.1871249Z OK https://pkgs.dev.azure.com/XXXXXequip/_packaging/486904e9-71fc-48f1-908f-a824f8b3c40f/nuget/v3/flat2/XXXXX.cake.core/0.1.632/XXXXX.cake.core.0.1.632.nupkg 678ms
2021-04-14T18:33:27.2061967Z Acquiring lock for the installation of XXXXX.Cake.Core 0.1.632
2021-04-14T18:33:27.2089975Z Acquired lock for the installation of XXXXX.Cake.Core 0.1.632
2021-04-14T18:33:27.2100879Z Installing XXXXX.Cake.Core 0.1.632.
2021-04-14T18:33:28.4625047Z Completed installation of XXXXX.Cake.Core 0.1.632
2021-04-14T18:33:30.7666187Z Script 'D:/a/1/s/tools/XXXXX.Cake.Core.0.1.632/content/tasks_utilities.cake' has already been processed.
2021-04-14T18:33:31.0441155Z No modules found to install.
2021-04-14T18:33:31.0539865Z Module directory does not exist.
2021-04-14T18:33:31.0678595Z Analyzing build script...
2021-04-14T18:33:31.0689814Z Analyzing D:/a/1/s/build/build.cake...
2021-04-14T18:33:31.0876014Z CACHE https://pkgs.dev.azure.com/XXXXXequip/_packaging/486904e9-71fc-48f1-908f-a824f8b3c40f/nuget/v3/registrations2-semver2/XXXXX.cake.core/index.json
2021-04-14T18:33:31.1564616Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/addins.cake...
2021-04-14T18:33:31.1897803Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/appcenter_bundles.cake...
2021-04-14T18:33:31.2397996Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/debugs.cake...
2021-04-14T18:33:31.2399330Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/parameters.cake...
2021-04-14T18:33:31.7491871Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/release_startrax.cake...
2021-04-14T18:33:31.7620043Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_utilities.cake...
2021-04-14T18:33:32.4501064Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/setup_arguments.cake...
2021-04-14T18:33:32.5063664Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_add_tools.cake...
2021-04-14T18:33:32.5892389Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_build.cake...
2021-04-14T18:33:32.9888383Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_database.cake...
2021-04-14T18:33:33.1473614Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_deploy.cake...
2021-04-14T18:33:33.1710327Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_initialize.cake...
2021-04-14T18:33:33.2899543Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_nugets.cake...
2021-04-14T18:33:33.3601169Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_package.cake...
2021-04-14T18:33:34.1312798Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_publish.cake...
2021-04-14T18:33:34.2102803Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_restore.cake...
2021-04-14T18:33:34.2823404Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_test.cake...
2021-04-14T18:33:34.3879553Z Script 'D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_utilities.cake' has already been processed.
2021-04-14T18:33:34.3881142Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/tasks_version.cake...
2021-04-14T18:33:34.5451577Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/utilities.cake...
2021-04-14T18:33:34.6148511Z Analyzing D:/a/1/s/build/tools/XXXXX.Cake.Core.0.1.632/content/valueobjects.cake...
2021-04-14T18:33:34.6864037Z Processing build script...
2021-04-14T18:33:34.6884734Z Installing tools...
2021-04-14T18:33:35.1050871Z Error: Cake.Core.CakeException: Could not find an installer for the 'dotnet' scheme.
2021-04-14T18:33:35.1051854Z at Cake.Core.Scripting.ScriptProcessor.InstallPackages(IReadOnlyCollection`1 modules, DirectoryPath installPath, PackageType packageType) in C:\projects\cake\src\Cake.Core\Scripting\ScriptProcessor.cs:line 195
2021-04-14T18:33:35.1052971Z at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath) in C:\projects\cake\src\Cake.Core\Scripting\ScriptRunner.cs:line 102
2021-04-14T18:33:35.1053895Z at Cake.Features.Building.BuildFeature.RunCore(IRemainingArguments arguments, BuildFeatureSettings settings) in C:\projects\cake\src\Cake\Features\Building\BuildFeature.cs:line 90
2021-04-14T18:33:35.1055065Z at Cake.Features.Building.BuildFeature.Run(IRemainingArguments arguments, BuildFeatureSettings settings) in C:\projects\cake\src\Cake\Features\Building\BuildFeature.cs:line 49
2021-04-14T18:33:35.1058404Z at Cake.Commands.DefaultCommand.Execute(CommandContext context, DefaultCommandSettings settings) in C:\projects\cake\src\Cake\Commands\DefaultCommand.cs:line 72
2021-04-14T18:33:35.1397840Z ##[debug]$LASTEXITCODE: 1
2021-04-14T18:33:35.1615275Z ##[debug]Exit code: 1
2021-04-14T18:33:35.1652785Z ##[debug]Leaving Invoke-VstsTool.
2021-04-14T18:33:35.2477362Z ##[error]PowerShell exited with code '1'.
2021-04-14T18:33:35.2486502Z ##[debug]Processed: ##vso[task.logissue type=error]PowerShell exited with code '1'.
2021-04-14T18:33:35.2727813Z ##[debug]Processed: ##vso[task.complete result=Failed]Error detected
2021-04-14T18:33:35.3793846Z ##[debug]Leaving D:\a_tasks\PowerShell_e213ff0f-5d5c-4791-802d-52ea3e7be1f1\2.180.1\powershell.ps1.
2021-04-14T18:33:35.4086305Z ##[section]Finishing: PowerShell Script
Beta Was this translation helpful? Give feedback.
All reactions