-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LINQPad program queries with args don't compile #25
Comments
Thank you for this helpful program. Given some assumptions, I was able to workaround this issue for my needs. Starting from line 567 in Program.cs, I commented out the following lines: "class UserQuery {",
//" static int Main(string[] args) {",
//" new UserQuery().Main()" + (IsMainAsync(source) ? ".Wait()" : null) + "; return 0;",
//" }",
source,
"}") Now, the original |
@dm3ll3n Thanks for dropping a note with a workaround that worked for you. I'm sure it'll help others encountering the same bug. |
This feels like a pretty big limitation. Is there a plan to fix this? Would you accept a PR? |
It's been fixed in the branch that will become version 2.
If you need this fixed more immediately for v1 then I'd be happy to accept a PR and make a release. |
You can see here that all signatures of |
Suppose the following LINQPad program query:
When run through
lpless
, the compiled program fails to build due to the following error:The text was updated successfully, but these errors were encountered: