No video

ENVIRONMENTS in ASP NET Core | Getting Started With ASP.NET Core Series

  Рет қаралды 13,097

Rahul Nath

Rahul Nath

Күн бұрын

Hello Friend 👋, ASP.NET Core configures application behavior based on the runtime environment using an environment variable. Out of the box, the framework provides three values - Development, Staging, and Production. More can be added based on your needs.
In this video let's understand more about Environments in ASP NET Core, how it's set, and a few different scenarios where this is used. We will learn about the launchsettings.json file, how the Development environment is set using it. We will also learn how to override values in the file and how we can create custom environments. I will also show you how to use environment specific appsettings.json file and how it works internally.
00:00 - Introduction
01:31 - Development Environment
03:33 - launchsettings.json
06:15 - Setting Environment variables
13:30 - Startup Class and Environment
16:51 - App Settings and Environment
🔗Docs - docs.microsoft...
🔗Source - rahulpnath.vis...
🔗WIndows Terminal - www.rahulpnath...
Additional Watching
📹LOGGING - • LOGGING in ASP.NET Cor...
📹 STARTUP CLASS - • THE STARTUP CLASS In A...
📹ASP NET Core Series - • ASP.NET Core
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath...
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🎥 Recording Setup and Workflow - www.rahulpnath...
Make sure to SUBSCRIBE to the channel. THANK YOU for helping me grow this channel !!

Пікірлер: 48
@ivanpesenti1138
@ivanpesenti1138 3 жыл бұрын
Hi Rahul, even without subtitles this video is very very clear and valuable. U make me discover new things as always
@RahulNath
@RahulNath 3 жыл бұрын
Thank you Ivan for you constant motivation. It does really help me to keep going 😀 And happy you are finding the videos useful.
@beautyIsinEverything753
@beautyIsinEverything753 Жыл бұрын
very nice explanation.
@RahulNath
@RahulNath Жыл бұрын
Glad you liked it!
@gsateesh7643
@gsateesh7643 8 ай бұрын
Very nice explanation bro. Thank you.
@RahulNath
@RahulNath 8 ай бұрын
Glad it helped! Do check out the series for more videos bit.ly/asp-net-core-series
@rogeriocastellano449
@rogeriocastellano449 3 жыл бұрын
Congratulations, it is very comprehensive about the subject.
@RahulNath
@RahulNath 2 жыл бұрын
Glad you think so!
@chrishaas2904
@chrishaas2904 2 жыл бұрын
Very comprehensive video. What I can't figure out is how when using Azure Devops to deploy a solution, you can specify the environment for the target on premise machine. The examples I have found are 1 adding an environment variable at the machine level (not preferred) or adding environmentVariable ASPNETCORE_ENVIRONMENT in the web config that is created from devops if you deploy to IIS. Haven't been able to figure out how to do this automatically yet but I'm working on it. If you have other suggestions would love to hear it.
@orafasistemas
@orafasistemas Жыл бұрын
Thank you! very nice video!
@aikidoshi007
@aikidoshi007 3 жыл бұрын
Brilliant! Thanks Rahul.
@RahulNath
@RahulNath 3 жыл бұрын
Thank you Steve!!
@sanjayidpuganti
@sanjayidpuganti 3 жыл бұрын
Awesome video Rahul. Keep going
@RahulNath
@RahulNath 3 жыл бұрын
Thanks a ton Sanjay!
@swapnilvaychale3694
@swapnilvaychale3694 2 жыл бұрын
Great lesson series for asp.net core. I have learned all .net core topics here and which are very practical too. Make aome advance level topics as well. Thabk u Rahul
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Swapnil. Do drop in any topic suggestions if you have any!
@mryildiz702
@mryildiz702 2 жыл бұрын
I really like the clear explanations and code examples. I watch your videos on 1.25x or 1.5x speeds :D For me a little faster is better :D Subscribed!
@RahulNath
@RahulNath 2 жыл бұрын
Thank you 👍Good feedback on the pace, but glad that increasing the speed is working for you. On that note this is the best chrome extension for me 😀chrome.google.com/webstore/detail/video-speed-controller/nffaoalbilbmmfgbnbgppjihopabppdk
@mohammedalbosifi3975
@mohammedalbosifi3975 3 жыл бұрын
Thank you dear... We need a video to explain Kafka (message broker) with asp. Net core
@RahulNath
@RahulNath 3 жыл бұрын
Glad you like it and thank you for the suggestion. Added it to the list!
@mohammedalbosifi3975
@mohammedalbosifi3975 3 жыл бұрын
@@RahulNath thank you mester rahul
@RahulNath
@RahulNath 3 жыл бұрын
@@mohammedalbosifi3975 😀
@callegarip
@callegarip 3 жыл бұрын
Another excellent video. Thank you. Do you have a video for a full web.api net core deployment?
@RahulNath
@RahulNath 3 жыл бұрын
Thank you Victor. I have a full series where I cover different DevOps scenarios here kzfaq.info/sun/PL59L9XrzUa-m7AFDgjWuwm6exyCklc03U Also in the latest video here I show a build/deploy pipeline setup relevant to Environment variables in case you missed it kzfaq.info/get/bejne/rbqDqJWSqNW2Z40.html Is that what you were looking for?
@abdullahmirza4661
@abdullahmirza4661 2 жыл бұрын
Hi Rahul, Hope you are doing great. Well, First of all thanks for teaching us. Secondly i want know how the actual implementation is show to you when you navigate to "env.IsDevelopment()". when i do the same thing i just get the metadata file. I'm using Visual Studio 2019 currently.
@RahulNath
@RahulNath 2 жыл бұрын
Thank you ! This is a feature in Jetbrains Rider, one of the main reasons I use it for my videos. www.jetbrains.com/help/rider/Debugging_External_Code.html
@amineherizi4687
@amineherizi4687 3 жыл бұрын
Thank you, great lesson on the series, can you please post videos on docker and kubernetes in the future ?
@RahulNath
@RahulNath 3 жыл бұрын
Thank you for the suggestion. Anything in particular you are looking from Docker?
@amineherizi4687
@amineherizi4687 3 жыл бұрын
@@RahulNath Docker in context of micro services please
@RahulNath
@RahulNath 3 жыл бұрын
@@amineherizi4687 Thank you for clarifying. Sure will. Between have you come across this github.com/dotnet-architecture/eShopOnContainers#related-documentation-and-guidance
@anilanandachakrabortty1416
@anilanandachakrabortty1416 3 жыл бұрын
Nice video! How do i archive the same behavior with azure Pipeline with multiple environment app settings?
@RahulNath
@RahulNath 3 жыл бұрын
Thank you. Please check out these two videos that shows this kzfaq.info/get/bejne/m62TotagqJqXpn0.html kzfaq.info/get/bejne/hayiabmc3JbRoWw.html Let me know if that helps or if you have additional questions.
@ashleyrodrigues1468
@ashleyrodrigues1468 Жыл бұрын
Hi Rahul, if launch settings json is not deployed how will the environment name be detected after deploying
@younesreguieg4756
@younesreguieg4756 2 жыл бұрын
i have two files appsettings.Development.json & appsettings.Production.json, i want to apply ef_core update-database according to environment development or production put command doesn't work "dotnet ef database update -- --environment Production" always apply developmnet file
@RahulNath
@RahulNath 2 жыл бұрын
Based on the environment you can overrider the configuration values getting picked up. Highly recommend checking out the Configuration video kzfaq.info/get/bejne/a62cmquHxJeWXZ8.html Also check out different ways you can manage configuration www.rahulpnath.com/blog/handling-application-configuration/ Let me know if that helps or if you have additional questions.
@hendrykhoza4782
@hendrykhoza4782 2 жыл бұрын
I just want to hide my API Keys... how do I do that... by default the appsettings get push to my git repository
@RahulNath
@RahulNath 2 жыл бұрын
I cover it in details in this blog post and associated videos www.rahulpnath.com/blog/handling-application-configuration/ Hope that helps.
@shauncs
@shauncs Жыл бұрын
@@RahulNath I want to hide db connection string and some other keys in production. I can't use any managed service like Azure key vault. So I'm thinking of keeping it as a System environment variable. Saving a single key value pair like this and read them in .Net is simple and straight forward. But when it comes to saving a nested value as a system env variable and reading it always gives me Null value. Do you have any idea what I'm doing wrong?
@RahulNath
@RahulNath Жыл бұрын
@@shauncs Is it the delimiter that you are using? Do you have an example on what's failing?
@shauncs
@shauncs Жыл бұрын
@@RahulNath Got it sorted by adding __ (double underscore). Thanks anyways
@shaunrod114
@shaunrod114 3 жыл бұрын
Hi rahul hope you are doing well mate in this lockdown!! do you have any videos explaning deploying of an application into an public cloud domain ? let me know cheers
@RahulNath
@RahulNath 3 жыл бұрын
Hey Shaun, I am doing good. Hope you are doing well during the lockdown/covid too.! Stay safe. I have a DevOps series that shows various deployment scenarios, mostly for Azure kzfaq.info/sun/PL59L9XrzUa-m7AFDgjWuwm6exyCklc03U Is that what you are after? Can you please provide more details if not?
@mdabuzar2130
@mdabuzar2130 3 жыл бұрын
Micro services
@RahulNath
@RahulNath 3 жыл бұрын
Yes thank you for the reminder 😀 Working on some content ideas.
@mdabuzar2130
@mdabuzar2130 3 жыл бұрын
AKS
@RahulNath
@RahulNath 3 жыл бұрын
Not sure how soon that will be, I haven't worked much on it. So it will be a while later, but thank you for the suggestion
@techpc5453
@techpc5453 Жыл бұрын
A teacher captured the cutest moment at the nursery #shorts
00:33
Fabiosa Stories
Рет қаралды 63 МЛН
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 11 МЛН
Coding Shorts: Stop Leaking Secrets in ASP.NET Core
14:19
Shawn Wildermuth
Рет қаралды 6 М.
ASP NET Core launchsettings json file
11:36
kudvenkat
Рет қаралды 329 М.