Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# use https://www.linqpad.net/lprun.aspx for C# scripting
install:
- choco install linqpad
- set path=C:\Program Files (x86)\LINQPad5\;%path%
build_script:
- ps: |
$program = @"
// C# script start <<<<<<<<<<<<<<<<<<<<<<<<<
for (int i = 0; i < 3; i++)
{
Console.WriteLine(i);
}
// C# script end <<<<<<<<<<<<<<<<<<<<<<<<<<<
"@
- ps: $program | Out-File test-lprun.linq
- lprun -lang=Statements test-lprun.linq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment