XML Transform for App.Config Files

msellers's Avatar

msellers

29 Dec, 2015 06:57 AM

I have an application that as an artifact I would like to handle an XML Transform, just like what is done with the Web.config files for ASP.NET projects. I had it working locally by manually including the ASP.NET Stuff to do it, but that fails in AppVeyor.

Do you have any suggestions?

  1. Support Staff 1 Posted by Feodor Fitsner on 29 Dec, 2015 07:17 AM

    Feodor Fitsner's Avatar

    Usually, web.config transform occurs during app publishing (packaging in AppVeyor).
    Could you please clarify what you're trying to do? What do you mean under "manually including stuff"?

  2. 2 Posted by msellers on 29 Dec, 2015 07:19 AM

    msellers's Avatar

    I am looking to do the same transforms, but on an executable. (Specifically a Console Application)

    I've found a few workarounds, but they cause errors in AppVeyor builds.

    Mitchel Sellers
    Microsoft C# MVP, DNN MVP

    ________________________________

  3. Support Staff 3 Posted by Feodor Fitsner on 29 Dec, 2015 07:21 AM

    Feodor Fitsner's Avatar

    How do you do those transforms locally?

  4. 4 Posted by msellers on 29 Dec, 2015 07:24 AM

    msellers's Avatar

    The local attempt, was to pull in the Web Transform tasks that were used by the ASP.NET solution. But that resulted in an error message in AppVeyor about a missing Publish Profile.

    I'm open to options

    Mitchel Sellers
    Microsoft C# MVP, DNN MVP

    ________________________________

  5. Support Staff 5 Posted by Feodor Fitsner on 29 Dec, 2015 07:28 AM

    Feodor Fitsner's Avatar

    You can disable automatic packaging and use command to package app and publish artifact: https://gist.github.com/FeodorFitsner/e33f629c8a10becd1efd

  6. 6 Posted by msellers on 29 Dec, 2015 07:31 AM

    msellers's Avatar

    I don't want to change the way the Web projects work, they work wonderfully.

    This is for another project, as part of the total solution, that is a separate artifact.

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:03 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac