Pergunta

Estou tentando analisar um site (construído com asp.net) com o NDepend.

Se for uma olhada nas consultas do CQL sobre "código não utilizado / código morto", a ferramenta cita quase todos os meus métodos (incluindo o Onload, Onprender, ...), o que está obviamente errado.

Alguém tem alguma ideia do que posso fazer para ter um resultado melhor? desde já, obrigado

Foi útil?

Solução

exception790, the methods you are quoting onload, onprerender... are indeed never statically used in the code but are dynamically used (at runtime) by the ASP.NET infrastructure.

NDepend being a static analyzer, it can't anticipate dynamic calls.

Outras dicas

As I can see from NDepend FAQ (look for "How can I analyse my ASP.NET application with NDepend?"), you'll have to precompile your web-site and analyze it after that. There's how-to there.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top