mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 12:36:28 +02:00
pkg(dotnet-5.0.201): Add dotnet 5.0.201 support
This commit is contained in:
parent
6d04cc1680
commit
7ad8f337bc
6 changed files with 36 additions and 0 deletions
6
packages/dotnet/5.0.201/build.sh
vendored
Normal file
6
packages/dotnet/5.0.201/build.sh
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl "https://download.visualstudio.microsoft.com/download/pr/73a9cb2a-1acd-4d20-b864-d12797ca3d40/075dbe1dc3bba4aa85ca420167b861b6/dotnet-sdk-5.0.201-linux-x64.tar.gz" -Lo dotnet.tar.gz
|
||||
tar xzf dotnet.tar.gz --strip-components=1
|
||||
rm dotnet.tar.gz
|
||||
|
5
packages/dotnet/5.0.201/compile
vendored
Normal file
5
packages/dotnet/5.0.201/compile
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
dotnet new console
|
||||
rm Program.cs
|
||||
dotnet build -o .
|
5
packages/dotnet/5.0.201/environment
vendored
Normal file
5
packages/dotnet/5.0.201/environment
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put 'export' statements here for environment variables
|
||||
export DOTNET_ROOT=$PWD
|
||||
export PATH=$DOTNET_ROOT:$PATH
|
6
packages/dotnet/5.0.201/metadata.json
vendored
Normal file
6
packages/dotnet/5.0.201/metadata.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"language": "dotnet",
|
||||
"version": "5.0.201",
|
||||
"aliases": ["cs", "csharp"],
|
||||
"author": "Thomas Hobson <git@hexf.me>"
|
||||
}
|
5
packages/dotnet/5.0.201/run
vendored
Normal file
5
packages/dotnet/5.0.201/run
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Put instructions to run the runtime
|
||||
shift
|
||||
dotnet $(basename $(realpath .)).dll "$@"
|
9
packages/dotnet/5.0.201/test.cs
vendored
Normal file
9
packages/dotnet/5.0.201/test.cs
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
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