pkg(dotnet-5.0.201): Add dotnet 5.0.201 support
This commit is contained in:
parent
6d04cc1680
commit
7ad8f337bc
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
dotnet new console
|
||||||
|
rm Program.cs
|
||||||
|
dotnet build -o .
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Put 'export' statements here for environment variables
|
||||||
|
export DOTNET_ROOT=$PWD
|
||||||
|
export PATH=$DOTNET_ROOT:$PATH
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"language": "dotnet",
|
||||||
|
"version": "5.0.201",
|
||||||
|
"aliases": ["cs", "csharp"],
|
||||||
|
"author": "Thomas Hobson <git@hexf.me>"
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Put instructions to run the runtime
|
||||||
|
shift
|
||||||
|
dotnet $(basename $(realpath .)).dll "$@"
|
|
@ -0,0 +1,9 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
public class Test
|
||||||
|
{
|
||||||
|
public static void Main(string[] args)
|
||||||
|
{
|
||||||
|
Console.WriteLine("OK");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue