Cake Not Working on Build Server, Works on local environment #3079
Replies: 2 comments
-
You can check Tool Resolution in the docs to see how the tool resolution works. With something like:
you could explicitly set the location of the dotnet.exe you wish to use. I'm not sure what the properties of that dotnet.exe created by Azure DevOps are or what causes that error. It might be registered as a PATH variable and therefore used by cake. |
Beta Was this translation helpful? Give feedback.
-
Hey @josephbaggett It's been a long time since you opened this issue. I'm assuming you either found a solution, or a bug was fixed in future versions of Cake since version 0.32.1 which is what you were using at the time. If by any chance you still remember how you solved it, feel free to share on this issue. If you're arriving here from a search engine and have a similar error, please make sure you're using the most recent version of Cake, and open a new issue if you still see the same error. |
Beta Was this translation helpful? Give feedback.
-
What You Are Seeing?
I am seeing errors calling the dotnet cli when attempting to do the first dotnet cli command. I am looking at the logs, and on my build server, it is calling a dotnet.exe that is created during the build process from Azure DevOps on an on premise server. The directory it puts this dotnet.exe in is within the working directory:
Here is the command that fails which is called when I call DotNetCoreRestore which came from my logs:
"D:/Agent/bin/dotnet.exe" restore "..\CompanyName.ProjectName.sln"
This is running from my build directory which is one folder above the solution, which is the reason for the two periods to tell the command to go back one folder to find the solution file properly.
I have identified the "D:/Agent/bin/dotnet.exe" is the problem. When I point to that dotnet.exe, it does absolutely nothing. When I change this path on my build server via command line to this:
"C:\Program Files\dotnet\dotnet.exe" restore "..\CompanyName.ProjectName.sln"
The above line works, but the command called from Cake is called from the DotNetCoreRestore command, so I'm trying to figure out how to get the dotnet.exe to work that it is calling, or point the dotnet.exe to a different path in Cake(is this possible? is this driven via configuration?)
this works on my local machine, but on my build server, it does not work when running as an administrator service account.
What is Expected?
I am expecting the dotnet cli commands to work when executed on my build server. The dotnet cli is not working when calling from Cake methods.
What version of Cake are you using?
0.32.1
Are you running on a 32 or 64 bit system?
64
What environment are you running on? Windows? Linux? Mac?
Windows Server 2008 R2
Are you running on a CI Server? If so, which one?
Yes, Azure DevOps
How Did You Get This To Happen? (Steps to Reproduce)
I called the Cake powershell bootstrap file .\build.ps1
Output Log
2019-01-31T19:53:22.7110718Z ##[section]Starting: PowerShell Script
2019-01-31T19:53:22.7430939Z ==============================================================================
2019-01-31T19:53:22.7430939Z Task : PowerShell
2019-01-31T19:53:22.7430939Z Description : Run a PowerShell script
2019-01-31T19:53:22.7430939Z Version : 1.2.3
2019-01-31T19:53:22.7430939Z Author : Microsoft Corporation
2019-01-31T19:53:22.7430939Z Help : More Information
2019-01-31T19:53:22.7430939Z ==============================================================================
2019-01-31T19:53:23.7935519Z ##[command]. 'D:\Agent_work\96\s\CompanyName.ProjectName.Build\build.ps1' -Verbosity Diagnostic
2019-01-31T19:53:24.2855303Z Preparing to run build script...
2019-01-31T19:53:24.2855303Z Before if(!D:\Agent_work\96\s\CompanyName.ProjectName.Build) { And Go....................
2019-01-31T19:53:24.2855303Z after if
2019-01-31T19:53:25.0246312Z --------------------------------------------------------------------------------------
2019-01-31T19:53:25.0486314Z ***************************************************************************************
2019-01-31T19:53:25.0486314Z D:\Agent_work\96\s\CompanyName.ProjectName.Build\tools\Tools Dir is here
2019-01-31T19:53:25.0486314Z D:\Agent_work\96\s\CompanyName.ProjectName.Build\tools\packages.config.md5sum\package config =
2019-01-31T19:53:25.0726234Z *** Restoring Tools ***
2019-01-31T19:53:26.0779172Z *** After Restoring Tools ***
2019-01-31T19:53:26.0979080Z *** Cake Path: D:\Agent_work\96\s\CompanyName.ProjectName.Build\tools\Cake\Cake.exe ***
2019-01-31T19:53:26.1059122Z Running build script...
2019-01-31T19:53:26.3258951Z Module directory does not exist.
2019-01-31T19:53:26.5058921Z NuGet.config not found.
2019-01-31T19:53:26.6299030Z Analyzing build script...
2019-01-31T19:53:26.6458827Z Analyzing D:/Agent/_work/96/s/CompanyName.ProjectName.Build/build.cake...
2019-01-31T19:53:26.6658819Z Analyzing D:/Agent/_work/96/s/CompanyName.ProjectName.Build/CakeFiles/paths.cake...
2019-01-31T19:53:26.6978792Z Analyzing D:/Agent/_work/96/s/CompanyName.ProjectName.Build/CakeFiles/settings.cake...
2019-01-31T19:53:26.6978792Z Script 'D:/Agent/_work/96/s/CompanyName.ProjectName.Build/CakeFiles/paths.cake' has already been processed.
2019-01-31T19:53:26.9187977Z Processing build script...
2019-01-31T19:53:26.9187977Z Installing tools...
2019-01-31T19:53:26.9187977Z The 'tool' directive is attempting to install the 'xunit.runner.console' package
2019-01-31T19:53:26.9227841Z without specifying a package version number.
2019-01-31T19:53:26.9227841Z More information on this can be found at https://cakebuild.net/docs/tutorials/pinning-cake-version
2019-01-31T19:53:26.9227841Z It's not recommended, but you can explicitly override this warning
2019-01-31T19:53:26.9227841Z by configuring the Skip Package Version Check setting to true
2019-01-31T19:53:26.9227841Z (i.e. command line parameter "--settings_skippackageversioncheck=true",
2019-01-31T19:53:26.9227841Z environment variable "CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK=true",
2019-01-31T19:53:26.9227841Z read more about configuration at https://cakebuild.net/docs/fundamentals/configuration)
2019-01-31T19:53:27.7267510Z GET https://api.nuget.org/v3/registration3-gz-semver2/xunit.runner.console/index.json
2019-01-31T19:53:27.8547632Z OK https://api.nuget.org/v3/registration3-gz-semver2/xunit.runner.console/index.json 127ms
2019-01-31T19:53:28.0141888Z Found package 'xunit.runner.console 2.4.1' in 'D:/Agent/_work/96/s/CompanyName.ProjectName.Build/tools'.
2019-01-31T19:53:28.0341945Z Package xunit.runner.console.2.4.1 has already been installed.
2019-01-31T19:53:28.0381877Z Successfully installed 'xunit.runner.console 2.4.1' to D:/Agent/_work/96/s/CompanyName.ProjectName.Build/tools
2019-01-31T19:53:28.0461858Z Executing nuget actions took 44.05 ms
2019-01-31T19:53:28.1061868Z The 'tool' directive is attempting to install the 'OpenCover' package
2019-01-31T19:53:28.1061868Z without specifying a package version number.
2019-01-31T19:53:28.1061868Z More information on this can be found at https://cakebuild.net/docs/tutorials/pinning-cake-version
2019-01-31T19:53:28.1061868Z It's not recommended, but you can explicitly override this warning
2019-01-31T19:53:28.1061868Z by configuring the Skip Package Version Check setting to true
2019-01-31T19:53:28.1101881Z (i.e. command line parameter "--settings_skippackageversioncheck=true",
2019-01-31T19:53:28.1101881Z environment variable "CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK=true",
2019-01-31T19:53:28.1101881Z read more about configuration at https://cakebuild.net/docs/fundamentals/configuration)
2019-01-31T19:53:28.1101881Z GET https://api.nuget.org/v3/registration3-gz-semver2/opencover/index.json
2019-01-31T19:53:28.1701966Z OK https://api.nuget.org/v3/registration3-gz-semver2/opencover/index.json 59ms
2019-01-31T19:53:28.1981835Z Found package 'OpenCover 4.6.519' in 'D:/Agent/_work/96/s/CompanyName.ProjectName.Build/tools'.
2019-01-31T19:53:28.1981835Z Package OpenCover.4.6.519 has already been installed.
2019-01-31T19:53:28.1981835Z Successfully installed 'OpenCover 4.6.519' to D:/Agent/_work/96/s/CompanyName.ProjectName.Build/tools
2019-01-31T19:53:28.1981835Z Executing nuget actions took 1.25 ms
2019-01-31T19:53:28.2141815Z The 'tool' directive is attempting to install the 'ReportGenerator' package
2019-01-31T19:53:28.2141815Z without specifying a package version number.
2019-01-31T19:53:28.2181820Z More information on this can be found at https://cakebuild.net/docs/tutorials/pinning-cake-version
2019-01-31T19:53:28.2181820Z It's not recommended, but you can explicitly override this warning
2019-01-31T19:53:28.2181820Z by configuring the Skip Package Version Check setting to true
2019-01-31T19:53:28.2181820Z (i.e. command line parameter "--settings_skippackageversioncheck=true",
2019-01-31T19:53:28.2181820Z environment variable "CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK=true",
2019-01-31T19:53:28.2181820Z read more about configuration at https://cakebuild.net/docs/fundamentals/configuration)
2019-01-31T19:53:28.2221888Z GET https://api.nuget.org/v3/registration3-gz-semver2/reportgenerator/index.json
2019-01-31T19:53:28.2821801Z OK https://api.nuget.org/v3/registration3-gz-semver2/reportgenerator/index.json 58ms
2019-01-31T19:53:28.2901810Z GET https://api.nuget.org/v3/registration3-gz-semver2/reportgenerator/page/1.1.1/2.3.1.json
2019-01-31T19:53:28.2941804Z GET https://api.nuget.org/v3/registration3-gz-semver2/reportgenerator/page/2.3.2/4.0.0-alpha12.json
2019-01-31T19:53:28.2941804Z GET https://api.nuget.org/v3/registration3-gz-semver2/reportgenerator/page/4.0.0-alpha2/4.0.9.json
2019-01-31T19:53:28.3941709Z OK https://api.nuget.org/v3/registration3-gz-semver2/reportgenerator/page/1.1.1/2.3.1.json 100ms
2019-01-31T19:53:28.4341805Z OK https://api.nuget.org/v3/registration3-gz-semver2/reportgenerator/page/2.3.2/4.0.0-alpha12.json 142ms
2019-01-31T19:53:28.5622096Z OK https://api.nuget.org/v3/registration3-gz-semver2/reportgenerator/page/4.0.0-alpha2/4.0.9.json 268ms
2019-01-31T19:53:28.5901693Z Found package 'ReportGenerator 4.0.9' in 'D:/Agent/_work/96/s/CompanyName.ProjectName.Build/tools'.
2019-01-31T19:53:28.5941820Z Package ReportGenerator.4.0.9 has already been installed.
2019-01-31T19:53:28.5941820Z Successfully installed 'ReportGenerator 4.0.9' to D:/Agent/_work/96/s/CompanyName.ProjectName.Build/tools
2019-01-31T19:53:28.5941820Z Executing nuget actions took 2.9 ms
2019-01-31T19:53:28.6261895Z Installing addins...
2019-01-31T19:53:28.6261895Z The 'addin' directive is attempting to install the 'Cake.VersionReader' package
2019-01-31T19:53:28.6261895Z without specifying a package version number.
2019-01-31T19:53:28.6261895Z More information on this can be found at https://cakebuild.net/docs/tutorials/pinning-cake-version
2019-01-31T19:53:28.6301655Z It's not recommended, but you can explicitly override this warning
2019-01-31T19:53:28.6301655Z by configuring the Skip Package Version Check setting to true
2019-01-31T19:53:28.6301655Z (i.e. command line parameter "--settings_skippackageversioncheck=true",
2019-01-31T19:53:28.6301655Z environment variable "CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK=true",
2019-01-31T19:53:28.6301655Z read more about configuration at https://cakebuild.net/docs/fundamentals/configuration)
2019-01-31T19:53:28.6501649Z GET https://api.nuget.org/v3/registration3-gz-semver2/cake.versionreader/index.json
2019-01-31T19:53:28.7461578Z OK https://api.nuget.org/v3/registration3-gz-semver2/cake.versionreader/index.json 93ms
2019-01-31T19:53:28.7981592Z Found package 'Cake.VersionReader 5.0.0' in 'D:/Agent/_work/96/s/CompanyName.ProjectName.Build/tools/Addins'.
2019-01-31T19:53:28.7981592Z Package Cake.VersionReader.5.0.0 has already been installed.
2019-01-31T19:53:28.8021538Z Successfully installed 'Cake.VersionReader 5.0.0' to D:/Agent/_work/96/s/CompanyName.ProjectName.Build/tools/Addins
2019-01-31T19:53:28.8021538Z Executing nuget actions took 1.47 ms
2019-01-31T19:53:28.8181603Z The addin Cake.VersionReader will reference Cake.VersionReader.dll.
2019-01-31T19:53:28.8501530Z Verifying assembly 'Cake.VersionReader, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null'.
2019-01-31T19:53:28.9330906Z Adding assembly reference to mscorlib.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to System.Core.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to Cake.Core.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to Cake.Common.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to Cake.exe...
2019-01-31T19:53:28.9330906Z Adding assembly reference to System.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to System.Xml.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to System.Xml.Linq.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to System.Data.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to System.Runtime.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to System.Collections.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to netstandard.dll...
2019-01-31T19:53:28.9330906Z Adding assembly reference to Cake.VersionReader.dll...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.AppVeyor...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.AppVeyor.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.Bamboo...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.Bamboo.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.BitbucketPipelines...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.BitbucketPipelines.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.Bitrise...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.Bitrise.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.ContinuaCI...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.ContinuaCI.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.GitLabCI...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.GitLabCI.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.GoCD...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.GoCD.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.Jenkins...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.Jenkins.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.MyGet...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.TeamCity...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.TFBuild...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.TFBuild.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.TravisCI...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Build.TravisCI.Data...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Diagnostics...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.IO...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.IO.Paths...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Net...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Security...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Solution...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Solution.Project...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Solution.Project.Properties...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Solution.Project.XmlDoc...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Text...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Cake...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.ApiKey...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Config...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Download...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Features...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Install...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.New...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Pack...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Pin...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Push...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Sources...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Uninstall...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.Chocolatey.Upgrade...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotCover...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotCover.Analyse...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotCover.Cover...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotCover.Merge...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotCover.Report...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Build...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.BuildServer...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Clean...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Execute...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.MSBuild...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Delete...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.NuGet.Push...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Pack...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Publish...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Restore...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Run...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Test...
2019-01-31T19:53:28.9370890Z Importing namespace Cake.Common.Tools.DotNetCore.Tool...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.DotNetCore.VSTest...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.DupFinder...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.Fixie...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitLink...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitReleaseManager...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitReleaseManager.AddAssets...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitReleaseManager.Close...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitReleaseManager.Create...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitReleaseManager.Export...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitReleaseManager.Label...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitReleaseManager.Publish...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitReleaseNotes...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.GitVersion...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.ILMerge...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.ILRepack...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.InnoSetup...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.InspectCode...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.MSBuild...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.MSpec...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.MSTest...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NSIS...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.Add...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.Init...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.Install...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.List...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.Pack...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.Push...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.Restore...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.SetApiKey...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.SetProxy...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.Sources...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NuGet.Update...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.NUnit...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.OctopusDeploy...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.OpenCover...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.ReportGenerator...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.ReportUnit...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.Roundhouse...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.SignTool...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.SpecFlow...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.SpecFlow.StepDefinitionReport...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.SpecFlow.TestExecutionReport...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.TextTransform...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.VSTest...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.VSWhere...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.VSWhere.All...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.VSWhere.Latest...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.VSWhere.Legacy...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.VSWhere.Product...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.WiX...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.WiX.Heat...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.XBuild...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Tools.XUnit...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Common.Xml...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Core...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Core.Diagnostics...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Core.IO...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.Core.Scripting...
2019-01-31T19:53:28.9410894Z Importing namespace Cake.VersionReader...
2019-01-31T19:53:28.9410894Z Importing namespace System...
2019-01-31T19:53:28.9410894Z Importing namespace System.Collections.Generic...
2019-01-31T19:53:28.9410894Z Importing namespace System.IO...
2019-01-31T19:53:28.9410894Z Importing namespace System.Linq...
2019-01-31T19:53:28.9410894Z Importing namespace System.Text...
2019-01-31T19:53:28.9410894Z Importing namespace System.Threading.Tasks...
2019-01-31T19:53:30.0605557Z Compiling build script...
2019-01-31T19:53:35.6565295Z
2019-01-31T19:53:35.6565295Z ----------------------------------------
2019-01-31T19:53:35.6565295Z Setup
2019-01-31T19:53:35.6565295Z ----------------------------------------
2019-01-31T19:53:35.6565295Z Executing custom setup action...
2019-01-31T19:53:35.6565295Z Running tasks...
2019-01-31T19:53:35.6685330Z
2019-01-31T19:53:35.6685330Z ========================================
2019-01-31T19:53:35.6685330Z Clean
2019-01-31T19:53:35.6685330Z ========================================
2019-01-31T19:53:35.6685330Z Executing task: Clean
2019-01-31T19:53:35.6725260Z Clean!!!
2019-01-31T19:53:35.6725260Z Finished executing task: Clean
2019-01-31T19:53:35.6765290Z
2019-01-31T19:53:35.6765290Z ========================================
2019-01-31T19:53:35.6765290Z Restore
2019-01-31T19:53:35.6765290Z ========================================
2019-01-31T19:53:35.6765290Z Executing task: Restore
2019-01-31T19:53:35.6765290Z Restore!!!!
2019-01-31T19:53:35.6765290Z Working Directory: D:/Agent/_work/96/s/CompanyName.ProjectName.Build
2019-01-31T19:53:35.7205252Z Executing: "D:/Agent/bin/dotnet.exe" restore "..\CompanyName.ProjectName.sln"
2019-01-31T19:53:35.7405236Z ##[error]An error occurred when executing task 'Restore'.
2019-01-31T19:53:35.7405236Z Exception during Restore!!!! Calling Cake DotNetCoreRestore command for solution: ..\CompanyName.ProjectName.sln
2019-01-31T19:53:35.7445305Z Exception Message: .NET Core CLI: Process returned an error (exit code -2147450732).
2019-01-31T19:53:35.7445305Z Exception Inner Exception: Cake.Core.CakeException: .NET Core CLI: Process returned an error (exit code -2147450732).
2019-01-31T19:53:35.7445305Z at Cake.Core.Tooling.Tool
1.ProcessExitCode(Int32 exitCode) 2019-01-31T19:53:35.7445305Z at Cake.Core.Tooling.Tool
1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action1 postAction) 2019-01-31T19:53:35.7445305Z at Cake.Common.Tools.DotNetCore.Restore.DotNetCoreRestorer.Restore(String root, DotNetCoreRestoreSettings settings) 2019-01-31T19:53:35.7445305Z at Submission#0.DotNetCoreRestore(String root) 2019-01-31T19:53:35.7445305Z at Submission#0.<<Initialize>>b__0_3() 2019-01-31T19:53:35.7445305Z at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass20_0.<Does>b__0(ICakeContext x) 2019-01-31T19:53:35.7445305Z at Cake.Core.CakeTask.<Execute>d__43.MoveNext() 2019-01-31T19:53:35.7445305Z --- End of stack trace from previous location where exception was thrown --- 2019-01-31T19:53:35.7445305Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2019-01-31T19:53:35.7445305Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2019-01-31T19:53:35.7445305Z at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext() 2019-01-31T19:53:35.7445305Z --- End of stack trace from previous location where exception was thrown --- 2019-01-31T19:53:35.7445305Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 2019-01-31T19:53:35.7445305Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 2019-01-31T19:53:35.7445305Z at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext() 2019-01-31T19:53:35.7445305Z Exception StackTrace: at Cake.Core.Tooling.Tool
1.ProcessExitCode(Int32 exitCode)2019-01-31T19:53:35.7445305Z at Cake.Core.Tooling.Tool
1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action
1 postAction)2019-01-31T19:53:35.7445305Z at Cake.Common.Tools.DotNetCore.Restore.DotNetCoreRestorer.Restore(String root, DotNetCoreRestoreSettings settings)
2019-01-31T19:53:35.7445305Z at Submission#0.DotNetCoreRestore(String root)
2019-01-31T19:53:35.7445305Z at Submission#0.<>b__0_3()
2019-01-31T19:53:35.7445305Z at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass20_0.b__0(ICakeContext x)
2019-01-31T19:53:35.7445305Z at Cake.Core.CakeTask.d__43.MoveNext()
2019-01-31T19:53:35.7445305Z --- End of stack trace from previous location where exception was thrown ---
2019-01-31T19:53:35.7445305Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2019-01-31T19:53:35.7445305Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2019-01-31T19:53:35.7445305Z at Cake.Core.DefaultExecutionStrategy.d__4.MoveNext()
2019-01-31T19:53:35.7445305Z --- End of stack trace from previous location where exception was thrown ---
2019-01-31T19:53:35.7445305Z at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2019-01-31T19:53:35.7445305Z at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2019-01-31T19:53:35.7445305Z at Cake.Core.CakeEngine.d__31.MoveNext()
2019-01-31T19:53:35.7525245Z
2019-01-31T19:53:35.7525245Z ----------------------------------------
2019-01-31T19:53:35.7525245Z Teardown
2019-01-31T19:53:35.7525245Z ----------------------------------------
2019-01-31T19:53:35.7525245Z Executing custom teardown action...
2019-01-31T19:53:35.7525245Z Finished running tasks.
2019-01-31T19:53:35.8285246Z ##[error]Error: System.AggregateException: One or more errors occurred. ---> Cake.Core.CakeException: .NET Core CLI: Process returned an error (exit code -2147450732).
at Cake.Core.Tooling.Tool
1.ProcessExitCode(Int32 exitCode) at Cake.Core.Tooling.Tool
1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action1 postAction) at Cake.Common.Tools.DotNetCore.Restore.DotNetCoreRestorer.Restore(String root, DotNetCoreRestoreSettings settings) at Submission#0.DotNetCoreRestore(String root) at Submission#0.<<Initialize>>b__0_3() at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass20_0.<Does>b__0(ICakeContext x) at Cake.Core.CakeTask.<Execute>d__43.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.CakeEngine.<RunTask>d__28.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.CakeEngine.<RunTargetAsync>d__27.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Scripting.BuildScriptHost.<RunTargetAsync>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.Scripting.ScriptHost.RunTarget(String target) at Submission#0.<<Initialize>>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9
1.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.Script
1.<RunSubmissionsAsync>d__21.MoveNext() --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at Cake.Scripting.Roslyn.RoslynScriptSession.Execute(Script script) at Cake.Core.Scripting.ScriptRunner.Run(IScriptHost host, FilePath scriptPath, IDictionary
2 arguments)at Cake.Commands.BuildCommand.Execute(CakeOptions options)
at Cake.CakeApplication.Run(CakeOptions options)
at Cake.Program.Main()
---> (Inner Exception #0) Cake.Core.CakeException: .NET Core CLI: Process returned an error (exit code -2147450732).
at Cake.Core.Tooling.Tool
1.ProcessExitCode(Int32 exitCode) at Cake.Core.Tooling.Tool
1.Run(TSettings settings, ProcessArgumentBuilder arguments, ProcessSettings processSettings, Action1 postAction) at Cake.Common.Tools.DotNetCore.Restore.DotNetCoreRestorer.Restore(String root, DotNetCoreRestoreSettings settings) at Submission#0.DotNetCoreRestore(String root) at Submission#0.<<Initialize>>b__0_3() at Cake.Core.CakeTaskBuilderExtensions.<>c__DisplayClass20_0.<Does>b__0(ICakeContext x) at Cake.Core.CakeTask.<Execute>d__43.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.DefaultExecutionStrategy.<ExecuteAsync>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.CakeEngine.<ExecuteTaskAsync>d__31.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.CakeEngine.<RunTask>d__28.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.CakeEngine.<RunTargetAsync>d__27.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Scripting.BuildScriptHost.<RunTargetAsync>d__3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Cake.Core.Scripting.ScriptHost.RunTarget(String target) at Submission#0.<<Initialize>>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.<RunSubmissionsAsync>d__9
1.MoveNext()--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.Scripting.Script`1.d__21.MoveNext()<---
2019-01-31T19:53:35.9006840Z ##[error]Process completed with exit code 1 and had 2 error(s) written to the error stream.
2019-01-31T19:53:35.9046933Z ##[section]Finishing: PowerShell Script
Beta Was this translation helpful? Give feedback.
All reactions