I am trying to create a clean ASP.NET web API without reference to MVC assemblies, if possible. I followed this blog http://www.codeproject.com/Articles/615805/Creating-a-Clean-Minimal-Footprint-ASP-NET-WebAPI but with this line in Global.asax I still have to import the assembly System.Web.Mvc. Will there be an impact on my web api service if I remove it? I tried to start my service in my local without it, and I did not find any errors.
protected void Application_Start() { //AreaRegistration.RegisterAllAreas(); do we still need this? WebApiConfig.Register(GlobalConfiguration.Configuration); HandlerConfig.RegisterGlobalHandlers(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalConfiguration.Configuration.Filters); }
If you are not using MVC areas, then you do not need to call AreaRegistration.RegisterAllAreas()
AreaRegistration.RegisterAllAreas()
Source: https://habr.com/ru/post/952362/More articles:How to set multiple values ββin a list using lambda expression? - c #why the object identifier of a wrapper class does not work as a reference variable - javaconcatenating arrays in python such as matlab without knowing the size of the output array - pythonhow to determine if window.location failed? - javascriptAndroid Back button for specific activity - androidCan I execute Google Apps Script code from the Chrome extension? - google-chrome-extensionHow to get a sound graph for a waveform sound file? - iosCan I specify multiple endpoints for notification of Sendgrid events? - sendgridSystemVerilog system unit versus traditional test bench - unit-testingpresenting sound graphically as a wave - iosAll Articles