- source: Program.cs
- minimal Travis CI config .travis.yml (Linux, Docker, OS X)
- minimal Appveyor config appveyor.yml (Windows)
dotnet new console -n dotnet-core-http-loop-example
cd dotnet-core-http-loop-example
- some hello-world code
dotnet run -- 7
- CI config
dotnet add package Nancy.Hosting.Self --version 2.0.0-clinteastwood
dotnet add package Nancy --version 2.0.0-clinteastwood
dotnet add package Flurl --version 2.4.0
dotnet add package Flurl.Http
- some NancyFX & Flurl code
dotnet run -- 7
- simplified
- docker config
- ./build_run_docker.sh
↓
dotnet-core-http-loop-example.csproj : warning NU1701: Package 'Nancy.Hosting.Self 2.0.0-clinteastwood' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
dotnet-core-http-loop-example.csproj : warning NU1701: Package 'Nancy.Hosting.Self 2.0.0-clinteastwood' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.
Running on http://127.0.0.1:1234
Hello World 0!
Hello World 1!
Hello World 2!
Hello World 3!
Hello World 4!
Hello World 5!
Hello World 6!