Configure ASP.NET Core with a .ENV file!

Configure ASP.NET Core with a .ENV file!

Roberts Dev Talk

2 года назад

13,085 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ruber Flores de la Cruz
Ruber Flores de la Cruz - 24.06.2023 01:19

I am using windows. Debugging returns null variables; I also used TraversePath() and nothing. What would be the error?, thanks

Ответить
Nhlanhla Junior Malaza
Nhlanhla Junior Malaza - 18.02.2023 11:17

How would I do this on windows 2016 server?

Ответить
Miguel Rodriguez
Miguel Rodriguez - 04.01.2023 02:25

How do you add this to a new .NetCore 6.

Ответить
Raza Qureshi
Raza Qureshi - 12.10.2022 07:07

Nice, short and to the point video, thanks a lot!

Ответить
Vladimir Manguia
Vladimir Manguia - 07.08.2022 06:40

Awesome

Ответить
Gerardojao
Gerardojao - 05.08.2022 02:22

I´d like to know how to protect my connection string with .env

Ответить
Troom
Troom - 13.05.2022 16:23

Thanks, work like a charm ;)
in my case I had to use
DotNetEnv.Env.TraversePath().Load();

Ответить
Vlad Bulete
Vlad Bulete - 21.02.2022 19:18

Awesome way to keep your app's secrets secret! :)

Ответить
Ade Oke
Ade Oke - 10.02.2022 02:05

I do not belive that this works on a mac, variables are not seen and always blank

Ответить
Alexis Arce
Alexis Arce - 19.01.2022 05:49

Thanks!!!

Ответить
Leonnerce XVIII
Leonnerce XVIII - 15.01.2022 16:08

Nice video, thank you!

Ответить
Eirik Mangseth
Eirik Mangseth - 14.01.2022 15:51

Great video. Short and to the point. Using a .env file should play rather nicely with Docker and/or kubernetes too.

Ответить
Giaco
Giaco - 27.07.2021 04:43

great, thanks, could you also do a video on how the default way with the appsettings.json file would be?

Ответить