mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-08 19:26:25 +02:00
pkg(dotnet-2.2.8): added dotnet 2.2.8
This commit is contained in:
parent
507233400d
commit
01a1518c84
6 changed files with 71 additions and 0 deletions
16
packages/dotnet/2.2.8/build.sh
vendored
Normal file
16
packages/dotnet/2.2.8/build.sh
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl "https://download.visualstudio.microsoft.com/download/pr/022d9abf-35f0-4fd5-8d1c-86056df76e89/477f1ebb70f314054129a9f51e9ec8ec/dotnet-sdk-2.2.207-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
|
||||
|
||||
# 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
|
||||
|
||||
# Get rid of it, we don't actually need the application - just the restore
|
12
packages/dotnet/2.2.8/compile
vendored
Normal file
12
packages/dotnet/2.2.8/compile
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!usr/bin/env bash
|
||||
|
||||
export DOTNET_CLI_HOME=$PWD
|
||||
export HOME=$PWD
|
||||
|
||||
rename 's/$/\.cs/' "$@"
|
||||
dotnet build --help > /dev/null
|
||||
dotnet new console -o . --no-restore
|
||||
rm Program.cs
|
||||
|
||||
dotnet restore --source $DOTNET_ROOT/.nuget/packages
|
||||
dotnet build --no-restore
|
5
packages/dotnet/2.2.8/environment
vendored
Normal file
5
packages/dotnet/2.2.8/environment
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
export DOTNET_ROOT=$PWD
|
||||
export PATH=$DOTNET_ROOT:$PATH
|
23
packages/dotnet/2.2.8/metadata.json
vendored
Normal file
23
packages/dotnet/2.2.8/metadata.json
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"language": "dotnet",
|
||||
"version": "2.2.8",
|
||||
"provides": [
|
||||
{
|
||||
"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 }
|
||||
}
|
||||
]
|
||||
}
|
7
packages/dotnet/2.2.8/run
vendored
Normal file
7
packages/dotnet/2.2.8/run
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
export DOTNET_CLI_HOME=$PWD
|
||||
|
||||
shift
|
||||
dotnet bin/Debug/net5.0/$(basename $(realpath .)).dll "$@"
|
8
packages/dotnet/2.2.8/test.cs
vendored
Normal file
8
packages/dotnet/2.2.8/test.cs
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
|
||||
using System;
|
||||
|
||||
public class Test {
|
||||
public static void Main(string[] args) {
|
||||
Console.WriteLine("OK");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue