mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 13:06:27 +02:00
Updated to Dotnet 7.0.202
This commit is contained in:
parent
86d897d580
commit
b5cfd91cec
9 changed files with 175 additions and 0 deletions
17
packages/dotnet/7.0.202/build.sh
vendored
Normal file
17
packages/dotnet/7.0.202/build.sh
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl "https://download.visualstudio.microsoft.com/download/pr/bda88810-e1a6-4cf0-8139-7fd7fe7b2c7a/7a9ffa3e12e5f1c3d8b640e326c1eb14/dotnet-sdk-7.0.202-linux-x64.tar.gz
|
||||
" -Lo dotnet.tar.gz
|
||||
tar xzf dotnet.tar.gz --strip-components=1
|
||||
rm dotnet.tar.gz
|
||||
|
||||
# Cache nuget packages
|
||||
export DOTNET_CLI_HOME=$PWD
|
||||
./dotnet new console -o cache_application
|
||||
./dotnet new console -lang F# -o fs_cache_application
|
||||
./dotnet new console -lang VB -o vb_cache_application
|
||||
# This calls a restore on the global-packages index ($DOTNET_CLI_HOME/.nuget/packages)
|
||||
# If we want to allow more packages, we could add them to this cache_application
|
||||
|
||||
rm -rf cache_application fs_cache_application vb_cache_application
|
||||
# Get rid of it, we don't actually need the application - just the restore
|
36
packages/dotnet/7.0.202/compile
vendored
Normal file
36
packages/dotnet/7.0.202/compile
vendored
Normal 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
|
6
packages/dotnet/7.0.202/environment
vendored
Normal file
6
packages/dotnet/7.0.202/environment
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export DOTNET_ROOT=$PWD
|
||||
export PATH=$DOTNET_ROOT:$PATH
|
||||
export FSI_PATH=$(find $(pwd) -name fsi.dll)
|
66
packages/dotnet/7.0.202/metadata.json
vendored
Normal file
66
packages/dotnet/7.0.202/metadata.json
vendored
Normal file
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"language": "dotnet",
|
||||
"version": "7.0.202",
|
||||
"provides": [
|
||||
{
|
||||
"language": "basic.net",
|
||||
"aliases": [
|
||||
"basic",
|
||||
"visual-basic",
|
||||
"visual-basic.net",
|
||||
"vb",
|
||||
"vb.net",
|
||||
"vb-dotnet",
|
||||
"dotnet-vb",
|
||||
"basic-dotnet",
|
||||
"dotnet-basic"
|
||||
],
|
||||
"limit_overrides": { "max_process_count": 128 }
|
||||
},
|
||||
{
|
||||
"language": "fsharp.net",
|
||||
"aliases": [
|
||||
"fsharp",
|
||||
"fs",
|
||||
"f#",
|
||||
"fs.net",
|
||||
"f#.net",
|
||||
"fsharp-dotnet",
|
||||
"fs-dotnet",
|
||||
"f#-dotnet",
|
||||
"dotnet-fsharp",
|
||||
"dotnet-fs",
|
||||
"dotnet-fs"
|
||||
],
|
||||
"limit_overrides": { "max_process_count": 128 }
|
||||
},
|
||||
{
|
||||
"language": "csharp.net",
|
||||
"aliases": [
|
||||
"csharp",
|
||||
"c#",
|
||||
"cs",
|
||||
"c#.net",
|
||||
"cs.net",
|
||||
"c#-dotnet",
|
||||
"cs-dotnet",
|
||||
"csharp-dotnet",
|
||||
"dotnet-c#",
|
||||
"dotnet-cs",
|
||||
"dotnet-csharp"
|
||||
],
|
||||
"limit_overrides": { "max_process_count": 128 }
|
||||
},
|
||||
{
|
||||
"language": "fsi",
|
||||
"aliases": [
|
||||
"fsx",
|
||||
"fsharp-interactive",
|
||||
"f#-interactive",
|
||||
"dotnet-fsi",
|
||||
"fsi-dotnet",
|
||||
"fsi.net"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
25
packages/dotnet/7.0.202/run
vendored
Normal file
25
packages/dotnet/7.0.202/run
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
export DOTNET_CLI_HOME=$PWD
|
||||
|
||||
case "${PISTON_LANGUAGE}" in
|
||||
basic.net)
|
||||
;&
|
||||
fsharp.net)
|
||||
;&
|
||||
csharp.net)
|
||||
shift
|
||||
dotnet bin/Debug/net5.0/$(basename $(realpath .)).dll "$@"
|
||||
;;
|
||||
fsi)
|
||||
FILENAME=$1
|
||||
rename 's/$/\.fsx/' $FILENAME # Add .fsx extension
|
||||
shift
|
||||
dotnet $FSI_PATH $FILENAME.fsx "$@"
|
||||
;;
|
||||
*)
|
||||
echo "How did you get here? (${PISTON_LANGUAGE})"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
9
packages/dotnet/7.0.202/test.cs
vendored
Normal file
9
packages/dotnet/7.0.202/test.cs
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
|
||||
public class Test
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("OK");
|
||||
}
|
||||
}
|
6
packages/dotnet/7.0.202/test.fs
vendored
Normal file
6
packages/dotnet/7.0.202/test.fs
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
open System
|
||||
|
||||
[<EntryPoint>]
|
||||
let main argv =
|
||||
printfn "OK"
|
||||
0
|
1
packages/dotnet/7.0.202/test.fsx
vendored
Normal file
1
packages/dotnet/7.0.202/test.fsx
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
printfn "OK"
|
9
packages/dotnet/7.0.202/test.vb
vendored
Normal file
9
packages/dotnet/7.0.202/test.vb
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
Imports System
|
||||
|
||||
Module Module1
|
||||
|
||||
Sub Main()
|
||||
Console.WriteLine("OK")
|
||||
End Sub
|
||||
|
||||
End Module
|
Loading…
Add table
Add a link
Reference in a new issue