Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Why xdt:Transform (web.config) has no effect in VS 2017 Community?

$
0
0

Hello 

I migrate my VS 2010 project to VS 2017

In Web.config will be changed SQL-Server-connection String in accordance to live or testsystem.

it achived with following command in Web.Release.config

<addname="myConnectionString"connectionString="Data Source=MyServer;Initial Catalog=MyDatabase;Integrated Security=True"xdt:Transform="SetAttributes"xdt:Locator="Match(name)"/>

But in VS 2017 it does not work:

- after deployment on live-system is the connection string in Release.Web.Config not overwritten and still reference to development-system.

Why it is so,  and how can achive I this goal?

Thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>