Configure ASP.NET Core with a .ENV file!

preview_player
Показать описание
Use a .env file to load environment variables into your .NET Core or ASP.NET Core app during development really easily with this library! This works with any .NET Standard project, and is great if you’re used to frameworks like NestJS or Laravel

DotNetEnv on GitHub:

☕️ Don't forget, old developers need coffee (and.. beer and pizza too 🍺 🍕)

📧 📫 Join us on our developer journey! Sign up to our email newsletter:

🐦 Follow us on Twitter:

🎶 Music by Epidemic Sound:

Our gear - click through to support our channel! :)

Camera (Canon M50)

Camera mic (RODE VideoMic Pro)

Camera tripod (Manfrotto Compact tripod):

Voiceover Mic (Blue Yeti)

Chris's dev mouse for PC (Logitech MX Master 3)

Chris's dev keyboard for PC (Logitech MX Keys)

Rob's dev keyboard for Mac (Apple Magic Keyboard)

Rob's dev mouse for Mac (Apple Magic Mouse)

Disclaimer - some of our links are affiliate links, which means that we receive a small commission for any sales made via those links, at no extra cost to you - so a great way to support our channel! Thank you so much for your support 😊
Рекомендации по теме
Комментарии
Автор

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

RazaQureshiSNC
Автор

Vi 1min de video e ja resolveu meu problema obrigado <3

rafaelmendonca
Автор

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

VladTriesCoding
Автор

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

eirikmangseth
Автор

Thanks, work like a charm ;)
in my case I had to use

troom
Автор

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

gerardojao
Автор

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

giaco
Автор

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

ruberfloresdelacruz
Автор

Hey Rob, can i able to pass the login credentials via .env file in C#

revathyg
Автор

How would I do this on windows 2016 server?

nhlanhlajuniormalaza
Автор

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

miguelrodriguez
Автор

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

adeoke