Тёмный

ASP NET Core appsettings json file 

kudvenkat
Подписаться 829 тыс.
Просмотров 332 тыс.
50% 1

In this video we will discuss the significance of appsettings.json file in ASP.NET Core project.
Healthy diet is very important for both body and mind. We want to inspire you to cook and eat healthy. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking.
/ @aarvikitchen5572
Text version of the video
csharp-video-tutorials.blogsp...
Slides
csharp-video-tutorials.blogsp...
ASP.NET Core Text Articles & Slides
csharp-video-tutorials.blogsp...
ASP.NET Core Tutorial
• ASP.NET core tutorial ...
Angular, JavaScript, jQuery, Dot Net & SQL Playlists
ru-vid.com...
WebHost Class
github.com/aspnet/MetaPackage...

Наука

Опубликовано:

 

22 янв 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 89   
@phanidivi3613
@phanidivi3613 5 лет назад
no words sir,today i am a software engineer because of you sir.
@apositron84
@apositron84 4 года назад
Wow, these videos are amazing. I'm looking forward to getting up tomorrow and working through some more! Thank you!
@michalisp1121
@michalisp1121 3 года назад
I've seen many tutorials on youtube and I could say kudvenkat is the one of the best, if not the best, teacher out there. Wish I could post this in each of his videos. Thank you sir.
@fawemimoolawale4539
@fawemimoolawale4539 Год назад
This tutorial is applied for beginner’s in these 2022 or it’s what learning for beginner’s in these 2022 because there’s latest version
@sungjin1225
@sungjin1225 4 года назад
there are no deeper explanation doc or vid than this. This is amazing! Thank you!
@BendaoudAbdelmounaim
@BendaoudAbdelmounaim 3 года назад
Finally some in depth videos on the .NET Core framework, thank you so much
@prashnew1983
@prashnew1983 4 года назад
Sir , you are truly a gem. Thankyou
@talkathiriify
@talkathiriify 4 года назад
You are amazing Thank you very very very much for all your tutorials.
@TheAbubakarbaig
@TheAbubakarbaig 4 года назад
I really appreciate. I thought mosh was great but you are even greater than him. Kudos and long live man.
@GISJohn
@GISJohn 4 года назад
Oh man, you have saved me so much trouble! Great Series
@parko1965
@parko1965 5 лет назад
Looks like this series is going to be big, cheers Venkat for your time, good tutorial.
@tusharkukreti7448
@tusharkukreti7448 3 года назад
i want to say thank you in every video you post! I love you Kudvenkat
@hninkyawtwai8818
@hninkyawtwai8818 2 года назад
Kudvenkat is One of my best teachers. Thank you very much Sir!!
@ThomasLorenz1
@ThomasLorenz1 2 года назад
Very clear explanation. Great! Saved my day!
@GavinLon
@GavinLon 4 года назад
Excellent tutorial as always.
@SuperEvoken
@SuperEvoken 2 года назад
these videos are great; going to watch the whole series.
@yohanl1342
@yohanl1342 5 лет назад
thanks for teaching !!!
@pedroreisbr
@pedroreisbr 3 года назад
Finally some in depth videos on the .NET Core framework, thank you so much sir.
@fawemimoolawale4539
@fawemimoolawale4539 Год назад
This tutorial is applied for beginner’s in these 2022 or it’s what learning for beginner’s in these 2022 because there’s latest version
@fiddler-dv4or
@fiddler-dv4or 4 года назад
Great video. Thank you!
@sergeyplotnikov5031
@sergeyplotnikov5031 4 года назад
So clear!!!! Thank you!!!
@javiernievas2839
@javiernievas2839 4 года назад
You are amazing!!! Definitely!!
@jatinkumar4410
@jatinkumar4410 2 года назад
Your tutorials are amazing...
@cprashanthreddy
@cprashanthreddy 3 года назад
Superb Detail...
@erkangorgulu6013
@erkangorgulu6013 4 года назад
I really appreciate the effort you put into these videos. They really help.
@zbigniewcwiakalski7253
@zbigniewcwiakalski7253 5 лет назад
Cool !
@michigansafetyproducts1446
@michigansafetyproducts1446 5 лет назад
Thank you!
@dhliu9687
@dhliu9687 Год назад
Hi Teacher, I check - in ~
@ReduanRafi
@ReduanRafi 2 года назад
Very informative !
@chaitanya2725
@chaitanya2725 2 года назад
Excellent 👌
@roronoa_d_law1075
@roronoa_d_law1075 4 года назад
Nice infos here
@AspdotnetPools
@AspdotnetPools 2 года назад
Good one..
@jamesoo96571
@jamesoo96571 5 лет назад
If you are missing appsettings.json file just add PreserveNewest into EmployeeManagement.csproj file and add appsettings.json file to the project. Then fill it with shown info by yourself. Same with appsettings.developement.json. Cheers
@honeytrippers
@honeytrippers 5 лет назад
Hi Oleg Sviridov "....and add appsettings.json file to the project." How? RMB on EmploymentManagement->Add->New Item->ASP.NET Core->JSON file/JSON schema File ??? Then add the following?.... { "Logging": { "LogLevel": { "Default": "Warning" } } } ...save all and run the project? does the appsettings.developement.json get built automatically or do you need to add that separately??? If so, how? and how does it associate itself to the appsettings.json??? Regards
@honeytrippers
@honeytrippers 5 лет назад
Hi kudvenkat, The development example.... { "Logging": {"LogLevel": {"Default": "Debug", "System": "Information", "Microsoft": "Information"} }, "Mykey": "Value of MyKey from appsettings.Development.json" } ....doesn't show, just the appsettings.json example... { "Logging": { "LogLevel": { "Default": "Warning" } }, "AllowedHosts": "*", "Mykey": "Value of MyKey from appsettings.json" } ....though the... "Mykey": "Value of MyKey from Environmrnt Variable" ...version in the launchSettings.json did display........once I stopped running it the profile context of "EmployeeManagement" and ran it in "IIS Express" rpofile context I'd added it to!!!
@jatt420fauji
@jatt420fauji 5 лет назад
It Worked Thank's Sir
@robertmays6097
@robertmays6097 5 лет назад
excellent
@AshutoshKumar-kt1dd
@AshutoshKumar-kt1dd 4 года назад
Great
@Artavazd.kirakosyan
@Artavazd.kirakosyan 5 лет назад
thank you for a a high quality tutorial, quick question: 8~9min: after setting "MyKey" and running, I deleted the key from lanchsettings and appsettinggs, preassumably it must show the value of "MyKey" from appsettings, but not. any hint? where is that info come from?
@ayushtripathi9
@ayushtripathi9 5 лет назад
Thank you sir. Please make videos on .Net core Angular implementation.
@a_n_m3516
@a_n_m3516 5 лет назад
Yes good idea
@ItsCmiHD
@ItsCmiHD 5 лет назад
Did you find anything?
@a_n_m3516
@a_n_m3516 5 лет назад
Hi kudvenkat sir, say we add MyKey with different values in appSettings.json and environment variables of iisexpress profile. And we run the application from command line. It should display the MyKey of appSettings.json and not environment variables in launchSettings.json, am I right?
@reefhound9902
@reefhound9902 4 года назад
Just to add, as ConfigureAppConfiguration loads settings, it is "last one wins" in case of duplicate keys.
@kumarshrey209
@kumarshrey209 3 года назад
25 april 2021
@abouishakA
@abouishakA 2 года назад
thanks
@conaxliu9677
@conaxliu9677 4 года назад
4:30 I was trying to browse through the methods of _config to see how to retrieve the value of MyKey, but never thought it would be that easy. *Cry laughing*
@ibknl1986
@ibknl1986 3 года назад
You are doing a great job. May Allah (God) guide and bless you.
@DecentProgrammer
@DecentProgrammer 3 года назад
detailed viedo
@darshandivte4766
@darshandivte4766 3 года назад
so can we consider appsetting.js or appsetting.development.js file same as web.config file ?
@dheerajambippi2283
@dheerajambippi2283 3 года назад
When we publish .net core 3.1 project in release mode, It includes appsettings.json and appsettings.production .json. Why it not publish either appsettings.json nor appsettings.production.json file? Or appsetting.json is mandatory
@craghava5834
@craghava5834 Год назад
Hi Sir, if we have multiple appsettings files? appsettings.Dev.json, appsettings.QA.json, appsettings.Preprod.json, etc.? Please let me know accordingly thanks.
@Hemantsharma-fo4ut
@Hemantsharma-fo4ut 11 месяцев назад
Your voice is amazing, sounds like robot
@durpinthapamagar
@durpinthapamagar 5 лет назад
hello sir i could not find appsettings.json file in my project i am using vs 2017
@QuickZ_
@QuickZ_ 5 лет назад
right-click project -> Add -> new item -> App Setting file -> Add and it will generate the file for you.
@karlailianadesousavieira5151
@karlailianadesousavieira5151 5 лет назад
Is it possible to read an include file from Asp Net Core?
@trunklemcjeans
@trunklemcjeans 3 года назад
you sir are saving my ass. thank you.
@factworld4375
@factworld4375 5 лет назад
Thank you.
@laxmanchalla3301
@laxmanchalla3301 5 лет назад
Excellent Sir, Great Help, Very good explanation..
@Ruhgtfo
@Ruhgtfo 4 года назад
do you have time make an example app for face detection without third party API, but something like Emgu
@khosseny1625
@khosseny1625 5 лет назад
Dear Sir , Can we use appsettings file as we use the web.config file in asp.net forms to save the database connection string ?
@sriramsundara393
@sriramsundara393 5 лет назад
Yes we can use for that have connection string in dev json file and under env.isdevelopment condition, you can access the connection string.
@Defense89
@Defense89 2 года назад
nice video Thx alot , i would like to know how to access connection string in appsetting from dbcontext? i tried constructor but it tells me the connection string is null :/ please help me.
@viivekg
@viivekg 4 года назад
Can you show how to access AppSettings for my UnitTest Project please.
@QuickZ_
@QuickZ_ 5 лет назад
What happened to User Secrets?
@TheXunty
@TheXunty 5 лет назад
Can anyone explain this ? I am new to development, and dot net is my first language can anyone tell me what is the exact significance of appconfig file ? I see in this video the value is stored using key/value pair but in realtime project what exactly will it store ?
@ryanander31
@ryanander31 5 лет назад
RE: I am new to development, and dot net is my first language can anyone tell me what is the exact significance of appconfig file ? - An "app.config" file is the traditional configuration file used for applications built using the full .NET framework. It is built in an XML format and can contain a variety of settings (e.g. key/value pairs, service endpoint definitions, connection strings, framework specific settings, etc.). Note that in traditional ASP.NET this file is named "web.config" and can be altered post deployment using tools in Internet Information Services (IIS) server manager. These files can get rather large and complex as services and additional libraries are added to the application. App.config/Web.Config files are required to run applications using the full .NET framework. - The appsetting.json file in .NET Core is built in a JSON (JavaScript Object Notation) format and appears to be an optional component. The .NET Core dependency injection container (implemented in the Microsoft.Extensions.DependencyInjection) is able to search for different configuration sources (e.g. appsettings.json, appsettings.development.json, launchSetting.json, system environment variables, application parameters, etc) and bundle them into a single object that can be accessed at run time via a strongly typed object. RE: I see in this video the value is stored using key/value pair but in realtime project what exactly will it store ? - What the file is storing during "realtime"/run time may depend on what environment you are running the application under. In most circumstances it will probably contain at least connection string to a database. The connection string would probably be targeting different database servers when running in a production environment as opposed to a development environment.
@anithakrishnamoorthy5036
@anithakrishnamoorthy5036 7 месяцев назад
For new learners like me: Constuctor is a special method used to initialze object (ctor) Method - block of code needs to be executed
@spasstlu85
@spasstlu85 День назад
there is a thing that I don't understand. who creates an instance of startup class? how you can use the IConfiguration field _configuration without creating an instance of Startup and without passing the IConfiguration field to its constructor?
@Kasador
@Kasador 5 лет назад
Using MacOS, but when I type IConfiguration, I don't get any errors or red underlines, and so I'd like to know how to get the info for the namespace. EDIT: I updated my Visual Studio code and I am now receiving error messages.
@hemasarhan8606
@hemasarhan8606 Месяц назад
I get A null exception beacause the key in the environment cannot be read by the program idk why can you help me understand pls
@arunnayak3342
@arunnayak3342 3 года назад
Can we get pdf of all these classes.. Thanks in Advance...
@dotnetstuff1912
@dotnetstuff1912 4 года назад
environment specific config settings are not overriding appsetting.json settings (3.1) VS2019. Actually it is not at all reading config setting from Environment specific appsettings file
@mohinimadavi5870
@mohinimadavi5870 3 года назад
You need to put configuration IIS Express in Profiles in json file if you are launching using IIS Express.
@anvayjoshi6283
@anvayjoshi6283 3 года назад
@@mohinimadavi5870 Thank you
@vimalrules90
@vimalrules90 5 лет назад
AppSettings file is missing in my project
@dragony117
@dragony117 5 лет назад
maybe You are using dotnet core 2.1
@randompointlessness2766
@randompointlessness2766 2 года назад
My launchSettings won't load into Program Main arguments are empty
@charlesm.1638
@charlesm.1638 4 года назад
Will this work with ASP.net 3.1?
@NikhilShirgaonkar
@NikhilShirgaonkar 4 года назад
Yes, it does I'm using the same
@karthikraja7017
@karthikraja7017 4 года назад
How can we use encryption to hide actual connection string in appsettings.json ?
@narendrakumarbiswal2023
@narendrakumarbiswal2023 5 лет назад
For Environment variable it didnot fetched anything still redirecting from developement.json
@garurumon9758
@garurumon9758 4 года назад
If anyone else is confused by this then you need to add the key to the relevant profile if not running via IISExpress - the environment variables are specific to a profile.
@NikhilShirgaonkar
@NikhilShirgaonkar 4 года назад
Yes, make sure to which profile you're adding environment variable
@playtune9217
@playtune9217 Год назад
who is here from nagarro :)
@raqibul1000
@raqibul1000 2 года назад
ALLAH blessed you
Далее
Middleware in ASP NET Core
8:18
Просмотров 343 тыс.
Ручка из шланга, лайфхак
00:11
Просмотров 16 тыс.
AddSingleton vs AddScoped vs AddTransient
15:23
Просмотров 208 тыс.
ASP NET Core launchsettings json file
11:36
Просмотров 326 тыс.
Google Data Center 360° Tour
8:29
Просмотров 5 млн
Brutally honest advice for new .NET Web Developers
7:19
Async and await in C# example
11:56
Просмотров 528 тыс.
Configure ASP NET Core request processing pipeline
14:12
#engineering #diy #amazing #electronic #fyp
0:59
Просмотров 658 тыс.
Choose a phone for your mom
0:20
Просмотров 7 млн