davidebbo / WebActivator

Apache License 2.0
242 stars 49 forks source link

WebActivatorEx.PostApplicationStartMethod not available in WebActivator 2.0.3 #14

Closed mminns closed 11 years ago

mminns commented 11 years ago

Hi

I have been using WebActivator 1.# and finding it extremely useful I wanted to move some Bundle registration code from PreApplicationStartMethod to PostApplicationStartMethod.

I upgraded to the WebActivatorEx 2.0.3 nuget package but it doesn't seem to contain WebActivatorEx.PostApplicationStartMethod ?

This seems odd as it looks, from the code, as if it should be there. In the end I downloaded the code and built a new package and it does contain WebActivatorEx.PostApplicationStartMethod.

I'm not 100% sure whether its my workstation doing something stupid or not. Should I be seeing WebActivatorEx.PostApplicationStartMethod in WebActivatorEx 2.0.3

Cheers

Mike

davidebbo commented 11 years ago

That's most bizarre. And if you look at the binary, the attribute is not there at all? I'll need to investigate that...

davidebbo commented 11 years ago

I just tried importing the package into an Mvc4 app, and I'm able to use WebActivatorEx.PostApplicationStartMethod. There must be something else going on with your project.

mminns commented 11 years ago

Hi

Thanks for the swift response and for confirming that it should work.

I wonder if Visual Studio got confused after I removed version v1.0 and replaced it with v2.0.3? The compiler and the Object browser would only see PreApplicationStartMethod. Anyway although I did try closing and restarting VS, I will try again. Thanks

Mike

davidebbo commented 11 years ago

Note that the assembly name (and namespace) changed from WebActivator to WebActivatorEx from 1.x to 2.x, so maybe something is off there in the project. Anyway, I'll close this for now, but let me know if you need help.