Hello friends, welcome to the next year in this lab, we will learn about a lot sitting dot JSON file. What is the use of this point? And what is the purpose of this? Okay, now you can see here is your ICT profiles I explained that are not API what it is, I will explain what it is. First, remember, launch setting dot JSON file only needed when your development in progress. Can you host your application on iOS.
This file is no request. And if you try to publish your application As you can see launch setting find it not. So, for application going to live or in a production environment, we don't require launch setting not yet. But it is required in a development phase Okay. Now, so you can ask if I require some configuration for our application, then here I can do this. Now, you can use app settings dot JSON in this file, you can set your configuration or write your configuration here.
Okay. In the next lecture, we will see how the app setting file is you but now we you On setting play. Now you can see here there are two profiles. One is the highest expense. Another reason data.ap. So is Express profile kids youth when you run your application from Visual Studio, remember this T eyes Express profile is used when you run your application from Visual Studio.
But when you run your application from the CLA, then it use data API profile. Now, if you want to see in previous lab, we run our application from CLA. Now visit the CL and you can see here the output you can see here I'm just in the home okay. Application URL, there are two ports 1500 you can see now listening on 1005 thousand okay. But when you run your application from Visual Studio, you can check this is the lip. Now first we check what is the setting now it is used as input.
I need to stop this by pressing Ctrl C, I stop this, okay, I build this application is building your application. And now I want to run this by placing your firewall controller you can run your application You don't even know. Now you can see it is using SSL port. Okay. Yeah, we mentioned for cleaning. It is using HTTPS.
That's what it is showing it. Now, how the profile knows which server want to run it matches with this property, ASP dotnet core are still in process, then it will check here common name, common name and ASP NET Core hosting model. After checking these two, it will launch our application using the server. Now, one more thing if you remember in previous labs, I explained the environment variable. Now you can see here is ASP NET Core environment variable y this is used for this, okay, in this we use it is a development Then you can throw the exception page okay. And if it is not, then exception pages Not now, here is you production.
Now I'm going here a new properties in a debug you can see a spinet core environment well is production. Now, I change this to the development if I think you can see it is no development. Also, one more thing to remember here is a profile which profiles the profiles which are show in here as expressed in data for APA. You can see these are profiles. Now, that's all about launch settings dot JSON file. Thank you for watching, we will meet in the next lecture.