With LINQPad 5.32.01, lprun cannot run scripts which ticks "use experimental roslyn assemblies"

edited June 2018
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.

Comments

  • This is by design - it's related to the Roslyn assemblies for the command-line version are being NGENed to improve startup performance.

    I also anticipated lprun being more applicable to production use, which rules out the experimental assemblies.

    What's your scenario?
  • Thanks for the quick response! Now I understand it is by design. I did read about it anywhere so I asked the question.

    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).

Sign In or Register to comment.