Hi
Can i use web.config file in ASP.NET core ?
If only appsetting.json than how can i create in json like below
Web.Debug.config,Web.Development.config,Web.Release.config,Web.Test.config
I want to create for Json for same as above. and how it reflect with devops.
Alos how to create devops pipeline for ASP.NET core application ?
Thank you
Sam HobbsPosted Jan 19, 2024, 6:45 PM
The
web.configfile is for IIS and IIS uses it even for ASP.NET core applications.Uttam ChaturvediPosted Jan 19, 2024, 1:58 PM
1. Answering your first question => web.config have been replaced with appSettings.json in .net core. You can go through quite nice explanation below.
https://medium.com/@dozieogbo/a-better-way-to-inject-appsettings-in-asp-net-core-96be36ffa22b
https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core?view=azure-devops&tabs=dotnetfive
2. In order to create devops pipleine you need to have subscription in azure. You can have free trial for 30 days and later it will be charged as per usage. Please go thorugh below link for devops pipeline.
a. https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core?view=azure-devops&tabs=dotnetfive
b. https://azuredevopslabs.com/labs/vstsextend/azuredevopsprojectdotnet/