lprun /compileOnly ?
Options
is it possible to have the lprun.exe command just report on wether a given query compiles or not?
It will allow a build server to report on wether or not a set of queries will execute with the newest build. I am aware of the /warnings switch, but this would cause the queries to execute. I just want to know wether or not they compile.
It will allow a build server to report on wether or not a set of queries will execute with the newest build. I am aware of the /warnings switch, but this would cause the queries to execute. I just want to know wether or not they compile.
Comments
-
No, I've not considered this. By 'newest build', do you mean the newest LINQPad build, or the newest build of one of your assemblies?
-
Oh, sorry for not being clear. I manage a set of LINQPad queries that consume libraries that I have in a CI build. Advanced Users expect said LINQPad queries to be compatible with the output of the CI build.
So "newest build" refers to my own assemblies. -
There's no built-in feature for this. You could add a parameter to your query to tell it to do nothing as a workaround.
-
Thank you. They are not normally executed through lprun being mostly C# expressions and C# statements. To make them all C# programs with donothing parameter handling would make them contrived. It is a good option for checking myextensions, though.
-
I'll be adding a -compileonly switch in the next beta release, due soon. Stay posted.
-
Thank you. Much appreciated.