You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: System.ArgumentNullException: Value cannot be null.
Parameter name: imports[0]
at Microsoft.CodeAnalysis.Scripting.ParameterValidationHelpers.AddRangeChecked[T](ArrayBuilder`1 builder, IEnumerable`1 items, String parameterName)
at Microsoft.CodeAnalysis.Scripting.ParameterValidationHelpers.ConcatChecked[T](ImmutableArray`1 existing, IEnumerable`1 items, String parameterName)
at Microsoft.CodeAnalysis.Scripting.ScriptOptions.AddImports(IEnumerable`1 imports)
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()
What is Expected?
No crash - or at least a message that extensions without a namespace are not supported.
What version of Cake are you using?
0.22.0
Are you running on a 32 or 64 bit system?
64-bit
What environment are you running on? Windows? Linux? Mac?
Windows 7
Are you running on a CI Server? If so, which one?
N/A
How Did You Get This To Happen? (Steps to Reproduce)
Create an assembly with a class with a [CakeMethodAlias] attribute and don't put the class in the namespace.
#reference the assembly from a Cake script
#load the Cake script from step 2 in a parent Cake script
What You Are Seeing?
What is Expected?
No crash - or at least a message that extensions without a namespace are not supported.
What version of Cake are you using?
0.22.0
Are you running on a 32 or 64 bit system?
64-bit
What environment are you running on? Windows? Linux? Mac?
Windows 7
Are you running on a CI Server? If so, which one?
N/A
How Did You Get This To Happen? (Steps to Reproduce)
#reference
the assembly from a Cake script#load
the Cake script from step 2 in a parent Cake scriptFile from step 2:
File from step 3:
Output Log
The text was updated successfully, but these errors were encountered: