locked
Web Config Transformation not working as expected RRS feed

  • Question

  • User919378809 posted

    Hi All,

    I am developing WCF application using VS 2015.  I created different configuration using configuration manager and I created config (using add config transform) transform file also.  But when I build or publish the solution/service then it is not copying the right configuration file. I am not sure whether I miss something in configuration side.  Please suggest how can I publish/rebuild with correct config transform file.

    For ex I have web.Test.config file and I select "Test" configuration for build solution but it always copying web.config instead of web.test.config file.

    Thanks

    Selvakumar R

    Sunday, May 1, 2016 4:11 AM

Answers

  • User-286291038 posted

    Hi Selvakumar,

    The transform file should only define what you want to get transformed while doing the publishing. For example, the new database connection settings for the target environment etc.

    Please refer to the below msdn post which describes this process,

    https://msdn.microsoft.com/en-us/library/dd465318(v=vs.100).aspx

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, May 1, 2016 4:07 PM