Valhalla Legends Forums Archive | General Programming | C# code analyser

AuthorMessageTime
Arta
Does anyone know of a good C# code analyser? Like CodeSurfer, but for C#.

TIA.
May 23, 2006, 1:04 PM
Myndfyr
I haven't heard of anything like that.  The closest I can think of would be FxCop, but that's not a code analysis tool, it's a binary analysis tool, and it only verifies that you're complying with best practices.

If you'd like to write one, I may be interested in participating.  ;-)
May 23, 2006, 4:47 PM
Arta
hmm, perhaps in the future. I'm concentrating on analysing machine code at the moment. Thanks for the info :)
May 24, 2006, 4:36 PM
FrOzeN
ANTS Profiler does what you need, though, it costs $295. But it does have a 14 day trial.
May 25, 2006, 2:59 AM
Maddox
[quote author=Arta[vL] link=topic=15033.msg153085#msg153085 date=1148488585]
hmm, perhaps in the future. I'm concentrating on analysing machine code at the moment. Thanks for the info :)
[/quote]
C# compiled into machine code? WHERE?!
June 5, 2006, 10:12 AM
Arta
err, nowhere that I know of! The c# thing was a little side job, not related to the machine code stuff.
June 5, 2006, 2:25 PM
K
[quote author=Maddox link=topic=15033.msg153834#msg153834 date=1149502378]
[quote author=Arta[vL] link=topic=15033.msg153085#msg153085 date=1148488585]
hmm, perhaps in the future. I'm concentrating on analysing machine code at the moment. Thanks for the info :)
[/quote]
C# compiled into machine code? WHERE?!
[/quote]

http://msdn2.microsoft.com/en-us/6t9t5wcf.aspx
June 5, 2006, 3:45 PM
Maddox
[quote author=K link=topic=15033.msg153846#msg153846 date=1149522307]
[quote author=Maddox link=topic=15033.msg153834#msg153834 date=1149502378]
[quote author=Arta[vL] link=topic=15033.msg153085#msg153085 date=1148488585]
hmm, perhaps in the future. I'm concentrating on analysing machine code at the moment. Thanks for the info :)
[/quote]
C# compiled into machine code? WHERE?!
[/quote]

http://msdn2.microsoft.com/en-us/6t9t5wcf.aspx
[/quote]
Nice!
June 6, 2006, 9:04 AM
shout
When I get home I shall play around with this and IDA for a while. Note this is on the schools VS.NET 2003.

[img]http://show.imagehosting.us/show/1408202/0/nouser_1408/T0_-1_1408202.PNG[/img]
(Sorry about crappy image hosting site)

[code]
------ Build started: Project: Dundracal, Configuration: Debug .NET ------

Preparing resources...
Updating references...
Performing main compilation...

Build complete -- 0 errors, 0 warnings
Building satellite assemblies...
Performing Post-Build Event...
Microsoft (R) CLR Native Image Generator - Version 1.1.4322.573
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.
Dundracal, Version=0.0.0.2, Culture=neutral, PublicKeyToken=null <debug>



---------------------- Done ----------------------

    Build: 2 succeeded, 0 failed, 0 skipped

[/code]
June 7, 2006, 2:07 PM
Myndfyr
You shouldn't ngen the image as IIRC it becomes impossible to debug.  Once you're done with development you can run it, but it's not a good idea to do it post-every-build.

Alternatively, on 2.0, you can enable the .NET Native Image Generator service.
June 7, 2006, 3:27 PM
shout
There is a /debug option... I would think it would allow you to debug. If not they need to name stuff better.
June 7, 2006, 11:57 PM

Search