pkg(dotnet-5.0.201): Add dotnet 5.0.201 support

This commit is contained in:
Thomas Hobson 2021-03-20 14:39:59 +13:00
parent 6d04cc1680
commit 7ad8f337bc
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
6 changed files with 36 additions and 0 deletions

6
packages/dotnet/5.0.201/build.sh vendored Normal file
View 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
View 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
View 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
View 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
View 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
View File

@ -0,0 +1,9 @@
using System;
public class Test
{
public static void Main(string[] args)
{
Console.WriteLine("OK");
}
}