Answer the question
In order to leave comments, you need to log in
How to set different web.config for different publish profiles in Visual Studio 2015?
How to set different web.config for different publish profiles in Visual Studio 2015?
All articles about web.config transformation start by clicking on web.config and selecting add config transform from the dropdown menu. But I do not have such a line in this menu.
Answer the question
In order to leave comments, you need to log in
Попробуй вручную добавить файл Web.Staging.config (Staging имя конфигурации с картинки).
Содержимое файла:
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<connectionStrings>
<add name="ApplicationServices" connectionString="..." providerName="System.Data.SqlClient" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
</configuration>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question