Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Sep 26, 2016 @ 09:00
    Michaël Vanbrabandt
    0

    Custom Package actions to edit web.config

    Hi,

    In my plugin I am developing I have created a custom HttpModule. This needs to be registrated into the web.config.

    Can I do this automatically using the IPackageAction interface? Like I would do other stuf when the package gets installed? Or will this give issues during upgrades and so on?

    /Michaël

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Sep 26, 2016 @ 12:57
    Richard Soeteman
    100

    Hi,

    Take a look at http://packageactioncontrib.codeplex.com/ AddHttpmodule should do what you need.

    Best,

    Richard

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Sep 26, 2016 @ 13:04
    Michaël Vanbrabandt
    0

    Hi Richard,

    Thanks for the link!

    /Michaël

  • Comment author was deleted

    Sep 26, 2016 @ 13:02

    This might also be useful if you plan on having both a Nuget and an Umbraco package of your project http://www.nibble.be/?p=461 https://www.nuget.org/packages/Nibble.Umbraco.PackageActions/ that way you have a single tranform file for your web.config that can be used in both Nuget and Umb Package

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Sep 26, 2016 @ 13:11
    Michaël Vanbrabandt
    0

    Tim,

    Nice one thanks!

    For now it will be just an Umbraco package.

    /Michaël

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies