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

  • Question

  • 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

    <add name="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. Why? And how can achive I this goal?

    Thanks

    Wednesday, March 27, 2019 4:39 PM

All replies

  • Hi

    Welcome to MSDN forum.

    This forum is more about using visual studio(designer, reported control ,editor and etc in VS IDE). For your issue which is more related to asp.net development, we suggest you could go to Asp.Net Forum to get better support. Thank you for understanding.

    Best Regards,

    Dylan 


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Thursday, March 28, 2019 9:22 AM