I\'m building a nuget package for my company MVC4 template. I have run into an issue where I need the Global.asax.cs
to be modified to add these two lines:
I would take a look at WebActivator before going down the route of writing a PowerShell script to update existing source code. WebActivator is a NuGet package that you can use to add startup and shutdown code into an application without having to modify global.asax.
You will probably want to use the PostApplicationStartMethod attribute so your bundle registration is done at the end.