- Open a terminal and change to the folder containing the project. Specifically, where the
.sln
file is
dotnet build
dotnet run --project basic-web-app
- Run the tests
dotnet test
This document will focus on following the aws tutorial as closely as possible while modifying the information to relate to a C#/.NET This guide will use the following information...
- aws codepipeline tutorial - https://aws.amazon.com/getting-started/tutorials/continuous-deployment-pipeline/
- C# WebApp - https://github.com/codefellows/deployment-app-csharp
- Create an AWS ElasticBeanstalk environment. (This will take a several minutes.)
- Fork the C# repository to your own account that will be able to commit changes to the repository.
- Verify that the application has a buildspec.yml file that contains the following at the root level... buildspec.yml
version: 0.2
phases:
install:
runtime-versions:
dotnet: 2.2
build:
commands:
- dotnet restore basic-web-app/basic-web-app.csproj
- dotnet build basic-web-app/basic-web-app.csproj
- dotnet publish basic-web-app/basic-web-app.csproj -o site
artifacts:
files:
- basic-web-app/site/**/*
- basic-web-app/site/aws-windows-deployment-manifest.json
Note: The buildspec.yml will be required to include the phases with the runtime version.
- Start creating the codepipeline...