none
MSBuild Custom Publishing not Transforming Web.config files RRS feed

  • Question

  • I am using this solution to perform my Publishing via MSBuild and Jetbrains TeamCity: http://sedodream.com/2013/09/21/HowToExtendTheWebPublishProcessWithoutModifyingProjectContents.aspx

    For the most part, this works just fine in terms of getting the content published, however, I am encountering one problem with the solution in that it is not performing my Web.config transformations!

    Every other aspect of Publishing is working according to expectations excluding the Web.config transformations.

    I am using MSBuild that ships with Visual Studio 2013.

    Please advise as to what I may be doing wrong.

    Thanks.


    Friday, April 1, 2016 7:23 PM

Answers

  • Hi vs2015junkie,

    If you want the transform to be executed, you have to specify a build configuration for msbuild command. Code below is for your reference.

    /p:Configuration=Release
    Best Regards,
    Li Wang

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, April 4, 2016 3:14 AM