pkg(dotnet-5.0.201): Added F#.net, F# interactive and VB.net
This commit is contained in:
parent
a5c3858100
commit
adae6fde2f
|
@ -100,9 +100,9 @@ class Job {
|
||||||
|
|
||||||
const prlimit = [
|
const prlimit = [
|
||||||
'prlimit',
|
'prlimit',
|
||||||
'--nproc=' + this.runtime.max_process_count ,
|
'--nproc=' + this.runtime.max_process_count,
|
||||||
'--nofile=' + this.runtime.max_open_files ,
|
'--nofile=' + this.runtime.max_open_files,
|
||||||
'--fsize=' + this.runtime.max_file_size ,
|
'--fsize=' + this.runtime.max_file_size,
|
||||||
];
|
];
|
||||||
|
|
||||||
if (memory_limit >= 0) {
|
if (memory_limit >= 0) {
|
||||||
|
|
|
@ -7,8 +7,10 @@ rm dotnet.tar.gz
|
||||||
# Cache nuget packages
|
# Cache nuget packages
|
||||||
export DOTNET_CLI_HOME=$PWD
|
export DOTNET_CLI_HOME=$PWD
|
||||||
./dotnet new console -o cache_application
|
./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)
|
# 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
|
# If we want to allow more packages, we could add them to this cache_application
|
||||||
|
|
||||||
rm -rf 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
|
# Get rid of it, we don't actually need the application - just the restore
|
||||||
|
|
|
@ -1,15 +1,36 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
[ "${PISTON_LANGUAGE}" == "fsi" ] && exit 0
|
||||||
|
|
||||||
export DOTNET_CLI_HOME=$PWD
|
export DOTNET_CLI_HOME=$PWD
|
||||||
export HOME=$PWD
|
export HOME=$PWD
|
||||||
|
|
||||||
rename 's/$/\.cs/' "$@" # Add .cs extension
|
|
||||||
|
|
||||||
dotnet build --help > /dev/null # Shut the thing up
|
dotnet build --help > /dev/null # Shut the thing up
|
||||||
|
|
||||||
dotnet new console -o . --no-restore
|
case "${PISTON_LANGUAGE}" in
|
||||||
rm Program.cs
|
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 restore --source $DOTNET_ROOT/.nuget/packages
|
||||||
dotnet build --no-restore
|
dotnet build --no-restore
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
|
|
||||||
# Put 'export' statements here for environment variables
|
# Put 'export' statements here for environment variables
|
||||||
export DOTNET_ROOT=$PWD
|
export DOTNET_ROOT=$PWD
|
||||||
export PATH=$DOTNET_ROOT:$PATH
|
export PATH=$DOTNET_ROOT:$PATH
|
||||||
|
export FSI_PATH=$(find $(pwd) -name fsi.dll)
|
||||||
|
|
|
@ -1,5 +1,66 @@
|
||||||
{
|
{
|
||||||
"language": "dotnet",
|
"language": "dotnet",
|
||||||
"version": "5.0.201",
|
"version": "5.0.201",
|
||||||
"aliases": ["cs", "csharp"]
|
"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"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,5 +3,23 @@
|
||||||
# Put instructions to run the runtime
|
# Put instructions to run the runtime
|
||||||
export DOTNET_CLI_HOME=$PWD
|
export DOTNET_CLI_HOME=$PWD
|
||||||
|
|
||||||
shift
|
case "${PISTON_LANGUAGE}" in
|
||||||
dotnet bin/Debug/net5.0/$(basename $(realpath .)).dll "$@"
|
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
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
open System
|
||||||
|
|
||||||
|
[<EntryPoint>]
|
||||||
|
let main argv =
|
||||||
|
printfn "OK"
|
||||||
|
0
|
|
@ -0,0 +1 @@
|
||||||
|
printfn "OK"
|
|
@ -0,0 +1,9 @@
|
||||||
|
Imports System
|
||||||
|
|
||||||
|
Module Module1
|
||||||
|
|
||||||
|
Sub Main()
|
||||||
|
Console.WriteLine("OK")
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Module
|
|
@ -333,7 +333,6 @@ Content-Type: application/json
|
||||||
`d`,
|
`d`,
|
||||||
`dart`,
|
`dart`,
|
||||||
`dash`,
|
`dash`,
|
||||||
`dotnet`,
|
|
||||||
`dragon`,
|
`dragon`,
|
||||||
`elixir`,
|
`elixir`,
|
||||||
`emacs`,
|
`emacs`,
|
||||||
|
@ -341,6 +340,8 @@ Content-Type: application/json
|
||||||
`forte`,
|
`forte`,
|
||||||
`fortran`,
|
`fortran`,
|
||||||
`freebasic`,
|
`freebasic`,
|
||||||
|
`fsharp`,
|
||||||
|
`fsi`,
|
||||||
`go`,
|
`go`,
|
||||||
`golfscript`,
|
`golfscript`,
|
||||||
`groovy`,
|
`groovy`,
|
||||||
|
|
Loading…
Reference in New Issue