Skip to content

Commit e9cffbd

Browse files
authored
Modify C# Tests (#4553)
1 parent 627d755 commit e9cffbd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

archive/c/c-sharp/testinfo.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ folder:
33
naming: "pascal"
44

55
container:
6-
image: "mono"
7-
tag: "5.18" # Cannot use slim because it does not contain mcs for compilation
8-
build: "mcs -reference:System.Numerics {{ source.name}}{{ source.extension }}"
9-
cmd: "mono {{ source.name }}.exe"
6+
image: "mcr.microsoft.com/dotnet/sdk"
7+
tag: "9.0"
8+
build: |
9+
bash -c "dotnet new console --language 'C#' && \
10+
mv {{ source.name }}{{ source.extension }} Program.cs && \
11+
dotnet build --sc"
12+
cmd: "dotnet run --sc --no-restore"

0 commit comments

Comments
 (0)