Error while executing build.sh : Method 'Array.Empty' not found.
- Dominant language
- C#
- Stars
- 4.2k
- Forks
- 778
- Avg merge
- 1h 15m
- Merged PRs (30d)
- 19
Description
### What You Are Seeing?
System.MissingMethodException: Method 'Array.Empty' not found.
### What is Expected?
Cake successfully installed in Ubuntu 18.04 GoCD agent Docker container
### What version of Cake are you using?
0.30.0
### Are you running on a 32 or 64 bit system?
64
### What environment are you running on? Windows? Linux? Mac?
Linux / Ubuntu 18.04
### Are you running on a CI Server? If so, which one?
GOCD / GoCD Agent : Docker container
### How Did You Get This To Happen? (Steps to Reproduce)
When the pipeline executes the build.sh it fails.
### Output Log
at NuGet.Common.ExceptionUtilities.DisplayMessage (System.Exception exception, Boolean indent) <0x40d18b80 + 0x000af> in :0
at NuGet.Common.ExceptionUtilities.DisplayMessage (System.Exception exception) <0x40d18b50 + 0x00013> in :0
at NuGet.Common.ExceptionUtilities.LogException (System.Exception ex, ILogger logger, Boolean logStackAsError) <0x40d18840 + 0x00133> in :0
at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) <0x40cef860 + 0x008db> in :0
at NuGet.CommandLine.Program.Main (System.String[] args) <0x40cebd50 + 0x00037> in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method 'Array.Empty' not found.
at NuGet.Common.ExceptionUtilities.DisplayMessage (System.Exception exception, Boolean indent) <0x40d18b80 + 0x000af> in :0
at NuGet.Common.ExceptionUtilities.DisplayMessage (System.Exception exception) <0x40d18b50 + 0x00013> in :0
at NuGet.Common.ExceptionUtilities.LogException (System.Exception ex, ILogger logger, Boolean logStackAsError) <0x40d18840 + 0x00133> in :0
at NuGet.CommandLine.Program.MainCore (System.String workingDirectory, System.String[] args) <0x40cef860 + 0x008db> in :0
at NuGet.CommandLine.Program.Main (System.String[] args) <0x40cebd50 + 0x00037> in :0
An error occurred while installing Cake.
thanks for your help
Contributor guide
Research direction
Reproduce the failure by running build.sh for Cake 0.30.0 in the reported Ubuntu 18.04 GoCD agent Docker container. Start with the NuGet.Common stack trace and the Array.Empty exception, then verify the installation path. Done means Cake installs successfully and the pipeline no longer fails in that environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, docker, ubuntu
- Domain
- build-system, ci-cd, devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100