A very basic API to get back into things with C#
I'm abandoning this project because it takes 6 seconds on my fully loaded MBP to build and run 84 tests. That is not acceptable and I do not see C# as a viable option for building testable APIs.
- Install .Net Core
- Install Install .NET Core SDK
- Install Visual Studio Code
- Install the csharp extension for Visual Studio code within the IDE.
dotnet restore
- this will download all the dependneciesdotnet run
- within/dotnetcorehack
dir will start the app- JSON request using Postman can be made to
http://localhost:5000/contacts
- Run tests with
dotnet test dotnetcorehack.Test/dotnetcorehack.Test.csproj
This project utilizes StyleCop to ensure code is correct and consistent between developers. All linting rules are disabled while tests run or the project is being built in debug mode (dotnet build
defaults to debug). Linting will occur during a release build dotnet build -c release
.