Add example infrastructure

* Add "Shared" projects for all examples
* Update "Colors" example with better TrueColor demo
* Use same namespace for all examples
This commit is contained in:
Patrik Svensson
2021-04-11 22:47:26 +02:00
committed by Phil Scott
parent 2fe2bb3c32
commit 3545e0f6b5
74 changed files with 271 additions and 355 deletions

View File

@ -13,7 +13,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\Spectre.Console\Spectre.Console.csproj" />
<ProjectReference Include="..\..\Shared\Shared.csproj" />
</ItemGroup>
</Project>

View File

@ -1,7 +1,6 @@
using System.Collections.Generic;
using Spectre.Console;
namespace ColumnsExample
namespace Spectre.Console.Examples
{
public static class Program
{

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace ColumnsExample
namespace Spectre.Console.Examples
{
public sealed class User
{
@ -22,9 +22,9 @@ namespace ColumnsExample
},
new User
{
FirstName = "Brandon",
LastName = "Cole",
City = "Washington",
FirstName = "Phil",
LastName = "Scott",
City = "Dayton",
Country = "United States",
},
new User