dotnet --version
dotnet --list-sdks
dotnet --info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Hosting.Internal; | |
using Spectre.Console; | |
using Spectre.Console.Cli; | |
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args); | |
builder.Services.AddSingleton<IAnsiConsole>((_) => | |
AnsiConsole.Create( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Azure.Identity; | |
using Microsoft.Azure.Cosmos; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Hosting.Internal; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.Extensions.Options; | |
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Hosting.Internal; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.Extensions.Options; | |
HostApplicationBuilder builder = Host.CreateApplicationBuilder(args); | |
builder.Services.AddSingleton<IHostLifetime, ConsoleLifetime>(); | |
builder.Services.AddScoped<IMessageService, MessageService>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
var builder = Host.CreateApplicationBuilder(args); | |
builder.Services.AddHostedService<PingWorker>(); | |
var host = builder.Build(); | |
await host.RunAsync(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ | |
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net6.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
</Project> |
https://docs.microsoft.com/azure/templates/
az login
az group create \
https://aka.ms/automategithubworkflow3.30
az login
az group create --name <resource-group-name> --location eastus
NewerOlder