XML Transform for App.Config Files

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. 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. 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. How do you do those transforms locally?

  4. 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. You can disable automatic packaging and use command to package app and publish artifact: https://gist.github.com/FeodorFitsner/e33f629c8a10becd1efd

  6. 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