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?
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
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
Hi,
Take a look at http://packageactioncontrib.codeplex.com/ AddHttpmodule should do what you need.
Best,
Richard
Hi Richard,
Thanks for the link!
/Michaël
Comment author was deleted
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
Tim,
Nice one thanks!
For now it will be just an Umbraco package.
/Michaël
is working on a reply...