Created
April 28, 2022 14:03
-
-
Save rkttu/62d244efed978174ede21094412552d3 to your computer and use it in GitHub Desktop.
LINQPad runner running on Windows Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2022 AS build | |
RUN powershell.exe -Command \ | |
Invoke-WebRequest -UseBasicParsing 'https://www.linqpad.net/GetFile.aspx?LINQPad7Setup.exe' -OutFile "$home/LINQPad7Setup.exe"; \ | |
Start-Process -FilePath "$home/LINQPad7Setup.exe" -ArgumentList "/SP-","/VERYSILENT","/SUPPRESSMSGBOXES","/NORESTART","/NOICONS" -NoNewWindow -Wait; \ | |
rm -Force "$home/LINQPad7Setup.exe"; && \ | |
setx.exe /M PATH "%PROGRAMFILES%\LINQPad7;%PATH%" | |
FROM build | |
ADD Program.linq . | |
RUN lprun7.exe Program.linq && exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Query Kind="Statements"> | |
<IncludeUncapsulator>false</IncludeUncapsulator> | |
<IncludeLinqToSql>true</IncludeLinqToSql> | |
<IncludeAspNet>true</IncludeAspNet> | |
<RuntimeVersion>6.0</RuntimeVersion> | |
</Query> | |
await Console.Out.WriteLineAsync("Hello, World!"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment