Updated to Dotnet 7.0.202

This commit is contained in:
RVG|lory 2023-04-08 14:36:11 +02:00 committed by GitHub
parent 86d897d580
commit b5cfd91cec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 175 additions and 0 deletions

36
packages/dotnet/7.0.202/compile vendored Normal file
View file

@ -0,0 +1,36 @@
#!/usr/bin/env bash
[ "${PISTON_LANGUAGE}" == "fsi" ] && exit 0
export DOTNET_CLI_HOME=$PWD
export HOME=$PWD
dotnet build --help > /dev/null # Shut the thing up
case "${PISTON_LANGUAGE}" in
basic.net)
rename 's/$/\.vb/' "$@" # Add .vb extension
dotnet new console -lang VB -o . --no-restore
rm Program.vb
;;
fsharp.net)
first_file=$1
shift
rename 's/$/\.fs/' "$@" # Add .fs extension
dotnet new console -lang F# -o . --no-restore
mv $first_file Program.fs # For some reason F#.net doesn't work unless the file name is Program.fs
;;
csharp.net)
rename 's/$/\.cs/' "$@" # Add .cs extension
dotnet new console -o . --no-restore
rm Program.cs
;;
*)
echo "How did you get here? (${PISTON_LANGUAGE})"
exit 1
;;
esac
dotnet restore --source $DOTNET_ROOT/.nuget/packages
dotnet build --no-restore