From 7ad8f337bc2eeda6f0b15e52d211afa371a359f1 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sat, 20 Mar 2021 14:39:59 +1300 Subject: [PATCH] pkg(dotnet-5.0.201): Add dotnet 5.0.201 support --- packages/dotnet/5.0.201/build.sh | 6 ++++++ packages/dotnet/5.0.201/compile | 5 +++++ packages/dotnet/5.0.201/environment | 5 +++++ packages/dotnet/5.0.201/metadata.json | 6 ++++++ packages/dotnet/5.0.201/run | 5 +++++ packages/dotnet/5.0.201/test.cs | 9 +++++++++ 6 files changed, 36 insertions(+) create mode 100644 packages/dotnet/5.0.201/build.sh create mode 100644 packages/dotnet/5.0.201/compile create mode 100644 packages/dotnet/5.0.201/environment create mode 100644 packages/dotnet/5.0.201/metadata.json create mode 100644 packages/dotnet/5.0.201/run create mode 100644 packages/dotnet/5.0.201/test.cs diff --git a/packages/dotnet/5.0.201/build.sh b/packages/dotnet/5.0.201/build.sh new file mode 100644 index 0000000..cd72067 --- /dev/null +++ b/packages/dotnet/5.0.201/build.sh @@ -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 + diff --git a/packages/dotnet/5.0.201/compile b/packages/dotnet/5.0.201/compile new file mode 100644 index 0000000..9a0ea83 --- /dev/null +++ b/packages/dotnet/5.0.201/compile @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +dotnet new console +rm Program.cs +dotnet build -o . \ No newline at end of file diff --git a/packages/dotnet/5.0.201/environment b/packages/dotnet/5.0.201/environment new file mode 100644 index 0000000..34d0bbb --- /dev/null +++ b/packages/dotnet/5.0.201/environment @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export DOTNET_ROOT=$PWD +export PATH=$DOTNET_ROOT:$PATH diff --git a/packages/dotnet/5.0.201/metadata.json b/packages/dotnet/5.0.201/metadata.json new file mode 100644 index 0000000..72f2e79 --- /dev/null +++ b/packages/dotnet/5.0.201/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "dotnet", + "version": "5.0.201", + "aliases": ["cs", "csharp"], + "author": "Thomas Hobson " +} diff --git a/packages/dotnet/5.0.201/run b/packages/dotnet/5.0.201/run new file mode 100644 index 0000000..1739d03 --- /dev/null +++ b/packages/dotnet/5.0.201/run @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +shift +dotnet $(basename $(realpath .)).dll "$@" \ No newline at end of file diff --git a/packages/dotnet/5.0.201/test.cs b/packages/dotnet/5.0.201/test.cs new file mode 100644 index 0000000..e91a2a2 --- /dev/null +++ b/packages/dotnet/5.0.201/test.cs @@ -0,0 +1,9 @@ +using System; + +public class Test +{ + public static void Main(string[] args) + { + Console.WriteLine("OK"); + } +} \ No newline at end of file