From 708b43cd863e428d6178e6017ebe15550f4ddcd8 Mon Sep 17 00:00:00 2001 From: rzuckerm Date: Fri, 21 Mar 2025 21:02:58 -0500 Subject: [PATCH] Modify C# Tests --- archive/c/c-sharp/testinfo.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/archive/c/c-sharp/testinfo.yml b/archive/c/c-sharp/testinfo.yml index 0d59900ef..983415da1 100644 --- a/archive/c/c-sharp/testinfo.yml +++ b/archive/c/c-sharp/testinfo.yml @@ -3,7 +3,10 @@ folder: naming: "pascal" container: - image: "mono" - tag: "5.18" # Cannot use slim because it does not contain mcs for compilation - build: "mcs -reference:System.Numerics {{ source.name}}{{ source.extension }}" - cmd: "mono {{ source.name }}.exe" + image: "mcr.microsoft.com/dotnet/sdk" + tag: "9.0" + build: | + bash -c "dotnet new console --language 'C#' && \ + mv {{ source.name }}{{ source.extension }} Program.cs && \ + dotnet build --sc" + cmd: "dotnet run --sc --no-restore"