Skip to content

Investigate whether Kudu service has some unused references we can yank #216

Closed
davidebbo opened this Issue Nov 15, 2012 · 5 comments

3 participants

@davidebbo
projectkudu member

e.g. it may not need Razor & WebPages. The idea is to reduce the memory footprint.

@pranavkm

We should be able to these references from Kudu.Services:

  • Microsoft.AspNet.Mvc
  • Microsoft.AspNet.Razor
  • Microsoft.AspNet.WebPages
  • Microsoft.Web.Infrastructure
  • WebActivator
  • XmlSettings
@davidebbo
projectkudu member

You mean none of these are used at runtime? e.g. I'm pretty sure we use at least XmlSettings.

@remcoros

In Kudu.Service.Web not all odata references are used.

Microsoft.Data.Edm
Microsoft.Data.OData
Microsoft.Data.OData.Contrib

Maybe this package 'Microsoft.AspNet.WebApi.OData' can be split.

@davidebbo
projectkudu member

I think some of those assemblies are used dynamically even if they're not direct references. Specifically, they get used in this action:

    [HttpGet]
    [Queryable]
    public IQueryable<DeployResult> GetDeployResults()
    {
        //...
    }

when you pass an OData query on the URL.

@davidebbo davidebbo was assigned Nov 26, 2012
@davidebbo
projectkudu member

We actually need the Mvc/WebPages references for the WebAPI help page. But in Azure, we disabled that and those DLLs are excluded.

@davidebbo davidebbo closed this Jan 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.