Re: Code audit

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Patrice,

The overall goal is to performa a statistical analysis on the codebase: how
many calls are made to a given method and by which applications. While
marking methods as obsolete would be a great approach going forward, it
doesn't solve my immediate need to figure out what methods are being called
(I wouldn't know which are actually obsolete).

Regards,
Leon

"Patrice" wrote:

The overall goal is ?

You could use the obsolete attribute to mark what you don't want to be used
in this framework
(http://msdn.microsoft.com/en-us/library/system.obsoleteattribute.aspx).
Then it will issue a warning (or an error depending on how you configured
the attribute) when you compile something that uses this method...



"Leon" <Leon@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message de groupe de
discussion : E495F22A-02E9-4DD9-9F12-A527DB42EC58@xxxxxxxxxxxxxxxx
Hello,

I am currently working on a project with the following layout:
10 applications, each making calls to a common custom framework built on
top
of .Net. Each app consists of a solution with a number of projects
underneath. The framework is referenced by each application through a
project reference, but each app may use different methods inside the
framework (ex. some apps use Transactions, others don't). I need -to
perform
an audit on the applications to figure out which methods in the framework
are
actually used, but I can't seem to come up with an effective way of doing
it.
Since the framwork is referenced in 10 separate solutions, I would like to
avoid having to open each one individually and than finding all the
references for each of the framework methods. Does any one know of a good
tool to do this or can recommend an approach?

Thank you very much,
Leon



.



Relevant Pages

  • Re: .Net Framework 2.0
    ... We just found in our same legacy application (because focus is currently on ... When the Framework went from 1.0 to 1.1 in this ... and implement wrappers for our .Net components that create custom App ... have the problem that when our applications run under 3rd party vendor host ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Code audit
    ... Assuming a static analysis. ... each making calls to a common custom framework built ... Each app consists of a solution with a number of projects ... project reference, but each app may use different methods inside the ...
    (microsoft.public.dotnet.framework)
  • Getting an object
    ... I have 2 applications. ... In the first application I fill the object user with data. ... create a reference to the object... ... that I am creating the object in app 1 and I want to use ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Code audit
    ... "Patrice" wrote: ... each making calls to a common custom framework built ... Each app consists of a solution with a number of projects ... project reference, but each app may use different methods inside the ...
    (microsoft.public.dotnet.framework)
  • Re: Windows app or ASP.NET ?
    ... Code the same app in both! ... Note that the above is terrible advice because Web applications are *very* ... different types of applications than Windows Forms applications. ... you might want to find an ASP.NET "Reference Application". ...
    (microsoft.public.dotnet.languages.csharp)