Skip to content

Commit d08adbe

Browse files
committed
Add C# console app accepting an argument
1 parent 03efc4d commit d08adbe

File tree

4 files changed

+24
-11
lines changed

4 files changed

+24
-11
lines changed

.github/workflows/hello.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/secret.yml renamed to .github/workflows/icfp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Use Secret Token
1+
name: icfp
22
on: [push]
33
jobs:
44
build:

csharp-app/Program.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
3+
class Program
4+
{
5+
static void Main(string[] args)
6+
{
7+
if (args.Length < 1)
8+
{
9+
Console.WriteLine("Please provide an argument.");
10+
return;
11+
}
12+
13+
Console.WriteLine($"Argument: {args[0]}");
14+
}
15+
}

csharp-app/csharp-app.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<OutputType>Exe</OutputType>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
</Project>

0 commit comments

Comments
 (0)