ASP.NET Core 1.0 Web API doesn't return XML
问题 How can I have my vnext API to return XML and JSON ? I thought that using content-type with application/xml would work as it was before. Note that I tryed with Accept : application/xml too. But it seems not. EDIT : this is my project.json file : { "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": { "Microsoft.AspNet.Server.IIS": "1.0.0-beta4", "Microsoft.AspNet.Server.WebListener": "1.0.0-beta4", "Microsoft.AspNet.Mvc": "6.0.0-beta4", "Microsoft.AspNet.Mvc.Xml": "6.0.0-beta4" },