Skip to content

Tag: .net

ASP.NET Docker UserSecrets location

I have created an ASP.NET application that connects to microsoft sql database and needs a password for that. When running the application under Windows it takes the password from secrets.json file located in C:Users<user>AppDataRoamingMicrosoftUserSecrets<UserSecretsId> When running under Docker I…

How to deploy .net core in Kubernetes?

Recently I started study Kubernetes. And I want to deploy .net core in Kubernetes. How to deploy .net core in Kubernetes ? Maybe there is a simple example ? Answer There are lots of resources on the web for the specific mechanics that I will add at the bottom. This is a very broad question and probably not a …

.net core date format on Linux

I’m migrating my code from .net framework to .net core and testing it on a Linux machine, one of the issues I had a problem with is the date format when calling DateTime ToString() function, in Windows the default date format is guided by the OS and can be customized in the settings I’ve tried to …