Skip to content

Commit 683a4c6

Browse files
committed
add Echo example
1 parent 3d3d171 commit 683a4c6

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

Utility.CommandLine.Arguments.sln

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.28010.2016
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29509.3
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Utility.CommandLine.Arguments", "src\Utility.CommandLine.Arguments\Utility.CommandLine.Arguments.csproj", "{9E7684E0-A2E1-4F55-B492-12F4EDAD68C8}"
77
EndProject
@@ -33,6 +33,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{52A632BE
3333
build\test.sh = build\test.sh
3434
EndProjectSection
3535
EndProject
36+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Echo", "examples\Echo\Echo.csproj", "{7D3FD9E0-5E64-4103-A53C-8EF03B91D651}"
37+
EndProject
3638
Global
3739
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3840
Debug|Any CPU = Debug|Any CPU
@@ -51,6 +53,10 @@ Global
5153
{57E43670-9A19-4235-8552-EAB69404B56C}.Debug|Any CPU.Build.0 = Debug|Any CPU
5254
{57E43670-9A19-4235-8552-EAB69404B56C}.Release|Any CPU.ActiveCfg = Release|Any CPU
5355
{57E43670-9A19-4235-8552-EAB69404B56C}.Release|Any CPU.Build.0 = Release|Any CPU
56+
{7D3FD9E0-5E64-4103-A53C-8EF03B91D651}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
57+
{7D3FD9E0-5E64-4103-A53C-8EF03B91D651}.Debug|Any CPU.Build.0 = Debug|Any CPU
58+
{7D3FD9E0-5E64-4103-A53C-8EF03B91D651}.Release|Any CPU.ActiveCfg = Release|Any CPU
59+
{7D3FD9E0-5E64-4103-A53C-8EF03B91D651}.Release|Any CPU.Build.0 = Release|Any CPU
5460
EndGlobalSection
5561
GlobalSection(SolutionProperties) = preSolution
5662
HideSolutionNode = FALSE
@@ -59,6 +65,7 @@ Global
5965
{9E7684E0-A2E1-4F55-B492-12F4EDAD68C8} = {370AF284-4DF8-4A9C-8A76-EF15D523F45D}
6066
{2A63EB98-9E4F-4CC5-8390-4342B10E228D} = {B16DDE41-6A3F-489E-874C-BD0C9F0339CB}
6167
{57E43670-9A19-4235-8552-EAB69404B56C} = {94A8FBCD-26E6-4BF4-B4EB-EEA56BE1626B}
68+
{7D3FD9E0-5E64-4103-A53C-8EF03B91D651} = {94A8FBCD-26E6-4BF4-B4EB-EEA56BE1626B}
6269
EndGlobalSection
6370
GlobalSection(ExtensibilityGlobals) = postSolution
6471
SolutionGuid = {30778115-B18C-4585-866D-0D36417F35DD}

examples/Echo/Echo.csproj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>netcoreapp3.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
10+
</ItemGroup>
11+
12+
<ItemGroup>
13+
<ProjectReference Include="..\..\src\Utility.CommandLine.Arguments\Utility.CommandLine.Arguments.csproj" />
14+
</ItemGroup>
15+
16+
</Project>

examples/Echo/Program.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using Newtonsoft.Json;
2+
using System;
3+
using Utility.CommandLine;
4+
5+
namespace Echo
6+
{
7+
class Program
8+
{
9+
static void Main(string[] args)
10+
{
11+
Console.WriteLine(JsonConvert.SerializeObject(Arguments.Parse(), Formatting.Indented));
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)