Error CS0023: Operator '.' cannot be applied to operand of type 'void' #1539
Unanswered
gcacciapaglia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've cloned the Nuke Build source code, but when I try to compile it (using the build.ps1 command on Windows), I get the following two errors:
The error happens in correspondence of this line of code which is from the original code base of Nuke in github (I'm putting the first one because the second is pretty similar):
public static string JoinCommaOr(this IEnumerable<string> values) { var valuesList = values.ToArray(); return valuesList.Length >= 2 ? valuesList.Reverse().Skip(1).Reverse().JoinCommaSpace() + $"{(valuesList.Length > 2 ? "," : string.Empty)} or " + valuesList.Last() : valuesList.JoinCommaSpace(); }
Asking if someone has had the same problem.
P.S. I have installed the latest version (9.0.4) of the nuke global tool.
Beta Was this translation helpful? Give feedback.
All reactions