Skip to content

Latest commit

 

History

History
104 lines (70 loc) · 1.75 KB

File metadata and controls

104 lines (70 loc) · 1.75 KB
  • To create class lib project

dotnet new classlib \
--name Amazon.Extensions.Configuration.AppConfig \
--framework "netstandard2.0"

  • To add required packages to extension project

dotnet add package Microsoft.Extensions.Configuration
dotnet add package AWSSDK.AppConfig
dotnet add package System.Text.Json

  • To build classlib

dotnet build

  • To create sample API project

dotnet new webapi \
--name Samples \
--framework netcoreapp3.1

  • To add reference of configuration project to sample project

dotnet add reference ../src/Amazon.Extensions.Configuration.AppConfig/Amazon.Extensions.Configuration.AppConfig.csproj

  • To add Options package to sample API project

dotnet add package Microsoft.Extensions.Options

  • To run sample application

dotnet run

  • To create test project

dotnet new xunit \
--name Amazon.Extensions.Configuration.AppConfig.Tests \
--framework netcoreapp3.1
  • To add reference of configuration project to test project

dotnet add reference ../../src/Amazon.Extensions.Configuration.AppConfig/Amazon.Extensions.Configuration.AppConfig.csproj

  • To add required packages to test project

dotnet add package AWSSDK.AppConfig
dotnet add package Moq

  • To create solution file

dotnet new sln \
--name Amazon.Extensions.Configuration.AWSAppConfig

  • To add configuration extension project and test project to solution file

dotnet sln add src/Amazon.Extensions.Configuration.AppConfig/Amazon.Extensions.Configuration.AppConfig.csproj
dotnet sln add test/Amazon.Extensions.Configuration.AppConfig.Tests/Amazon.Extensions.Configuration.AppConfig.Tests.csproj