With LINQPad 5.32.01, lprun cannot run scripts which ticks "use experimental roslyn assemblies"
Errors look like:
xyz.linq(276,39): error CS1026: ) expected
xyz.linq(276,40): error CS1525: Invalid expression term '.'
xyz.linq(276,102): error CS1002: ; expected
xyz.linq(276,102): error CS1513: } expected
xyz.linq(326,28): error CS1002: ; expected
xyz.linq(326,29): error CS1525: Invalid expression term '.'
xyz.linq(364,21): error CS1519: Invalid token '?' in class, struct, or interface member declaration
xyz.linq(364,21): error CS1519: Invalid token '?' in class, struct, or interface member declaration
It is the same kind of error if I turn off that option and run in the linqpad GUI. The current lprun.exe options do not indicate how it can be turned on.
xyz.linq(276,39): error CS1026: ) expected
xyz.linq(276,40): error CS1525: Invalid expression term '.'
xyz.linq(276,102): error CS1002: ; expected
xyz.linq(276,102): error CS1513: } expected
xyz.linq(326,28): error CS1002: ; expected
xyz.linq(326,29): error CS1525: Invalid expression term '.'
xyz.linq(364,21): error CS1519: Invalid token '?' in class, struct, or interface member declaration
xyz.linq(364,21): error CS1519: Invalid token '?' in class, struct, or interface member declaration
It is the same kind of error if I turn off that option and run in the linqpad GUI. The current lprun.exe options do not indicate how it can be turned on.
Comments
I also anticipated lprun being more applicable to production use, which rules out the experimental assemblies.
What's your scenario?
I removed all nullable reference type syntaxes and it's working now.
My scenario is not very relevant. I simply have a bunch of linqpad scripts both locally in my computer as well as in teamcity build server (which uses lprun.exe).