build cli
This commit is contained in:
parent
b3d565b6d9
commit
5c046dfa88
34 changed files with 7153 additions and 1231 deletions
|
|
@ -1,2 +1,21 @@
|
|||
// See https://aka.ms/new-console-template for more information
|
||||
Console.WriteLine("Hello, World!");
|
||||
|
||||
using cli;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
internal class Program
|
||||
{
|
||||
public static IHost? AppHost { get; private set; }
|
||||
public static IConfigurationRoot? AppConfiguration { get; private set; }
|
||||
public static IHostEnvironment? AppEnvironment { get; private set; }
|
||||
|
||||
private static void Main(string[] args)
|
||||
{
|
||||
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args);
|
||||
AppHost = builder.Build();
|
||||
AppConfiguration = builder.Configuration;
|
||||
AppHost.Start();
|
||||
AppEnvironment = builder.Environment;
|
||||
Console.WriteLine("Hello, World!");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue