Skip to content

Commit 113be95

Browse files
committed
remove Task.Extensions dependency
1 parent 3cbee9f commit 113be95

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

sandbox/Net6Console/Program.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@
99

1010
//ConsoleApp.Run(args, (string name) => Console.WriteLine($"Hello {name}"));
1111

12-
args = new[] { "--message", "tako" };
12+
//args = new[] { "--message", "tako" };
1313

1414

1515

16-
static int Hello([Option("m")]string message, [Option("e")] bool end, [Option("r")] int repeat = 3)
17-
{
18-
for (int i = 0; i < repeat; i++)
19-
{
20-
Console.WriteLine(message);
21-
}
22-
if (end)
23-
{
24-
Console.WriteLine("END");
25-
}
26-
//throw new OperationCanceledException("hogemoge");
27-
return 999;
28-
}
16+
//static int Hello([Option("m")]string message, [Option("e")] bool end, [Option("r")] int repeat = 3)
17+
//{
18+
// for (int i = 0; i < repeat; i++)
19+
// {
20+
// Console.WriteLine(message);
21+
// }
22+
// if (end)
23+
// {
24+
// Console.WriteLine("END");
25+
// }
26+
// //throw new OperationCanceledException("hogemoge");
27+
// return 999;
28+
//}
2929

30-
ConsoleApp.Run(args, Hello);
30+
//ConsoleApp.Run(args, Hello);
3131

32-
return;
32+
//return;
3333

3434

3535
//args = new[] { "help" };

src/ConsoleAppFramework/ConsoleAppFramework.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<ItemGroup>
2020
<PackageReference Include="Microsoft.Extensions.Hosting" Version="6.0.0" />
2121
<PackageReference Include="System.Text.Json" Version="6.0.1" />
22-
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.4" />
2322
</ItemGroup>
2423

2524
<ItemGroup>

0 commit comments

Comments
 (0)