Using Different Web Configuration Visual Studio 2022

Опубликовано: 30 Сентябрь 2024
на канале: IntCoder
10,927
52

On this video you will learn how to use different web configuration files when publishing to different environments from Visual Studio 2022.

When publishing from Visual Studio 2022 we have the option to use different web.config file to different environments.

Using different Web.config in development and production environment

ConnectionStrings:
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"

AppSettings:
xdt:Transform="Replace" xdt:Locator="Match(key)"

Chapters
00:00 Intro
00:17 Create Project
00:34 Set Up dev Web.Config file
01:42 Set Up Production Web.Config file
04:09 Publish and Test Web.config files.