Add ASP.NET MVC view generation features to ASP.NET Web API
I think maintaining and working with ASP.NET MVC and ASP.NET Web API side by side in the same project is a drain on development resources and support cost.
I would like to use ASP.NET Web API to generate Razor views via an additional NuGet package rather then relying on ASP.NET MVC.
We plan to do work to better align ASP.NET MVC and Web API in our next release
mick delaney commented
this is supported through https://github.com/WebApiContrib/WebApiContrib.Formatting.Razor
so it would make sense for the webapi team to just accept it as a feature.
makes no sense to have to run mvc & all the duplication that brings (ioc, routing etc) just to render a few views, especially considering that alot of spa app's dont require a huge amount of serverside view generation.