dasmulli.blog - Martin's dev blog – Martin Ullrich

Description: Martin's dev blog.

blog (29050) development (16338) .net-core (196) asp.net-core (125)

Example domain paragraphs

.NET Core allows us to create and run .NET apps on many platforms, but actually shipping our apps is hard, especially if those apps aren’t web apps that use one of the well-integrated publishing methods (WebDeploy, Azure, Docker, …).

I have come to appreciate appsettings.json and the environment-specifics overrides like appsettings.Development.json / appsettings.Production.json . They are easy to use, can be live edited without needing to restart the application and most importantly, you can build once and run the same output in multiple environments .

The dotnet cli’s test command can be run on any msbuild project or solution, yet it fails when run on non-test projects and prints errors like:

Links to dasmulli.blog (2)