At the place I work at, we have a custom security/authentication mechanism for internal web applications using WebForms. Now we are developing in ASP.NET MVC 3 and want to extend the Controller class to support this just like we did to WebForm's Page class. We will then pack this into a custom - shared DLL.
I want to know how safe this is in terms of compatibility with future versions of MVC. If ASP.NET MVC 4.0 comes out next year, our custom controller classes (referencing ASP.NET MVC 3.0 Controller class) will still work in a MVC 4.0 app?
Is there any way to somehow extend a Controller without depending on an specific MVC version?
Not a duplicate of this: Extending Asp.NET MVC3 Controller Class
System.Web.Mvcno way around it unless you have no reference to Mvc...which doesn't seem very useful.Controllerclass, currently MVC 3 version.Controllerclass gives you a lot of extension points, so if you do it right, you won't have any issues with MVC 4 version. You didn't write how you want to extend, so we can't answer if it will be compatible with version 4.