piston/packages/dotnet/5.0.201/compile

12 lines
250 B
Bash

#!/usr/bin/env bash
export DOTNET_CLI_HOME=$PWD
export HOME=$PWD
dotnet build --help > /dev/null # Shut the thing up
dotnet new console -o . --no-restore
rm Program.cs
dotnet restore --source $DOTNET_ROOT/.nuget/packages
dotnet build --no-restore