ndepend

What is Abstractness vs. Instability Graph?

瘦欲@ 提交于 2019-12-09 14:25:40
问题 I recently used NDepend and it produced a good report on my .net assemblies and related pdbs. The most interesting thing I found in the report was abstractness vs. instability graph. I wanted to understand this in real detail, I read their docs and online metrices but it could only help to an extent. Primarily I wish to understand how to evaluate the graph correctly and techniques to control abstractness with stability. There's a very good article here that talks on this but what more in

“Can't find the .NET assembly {AssemblyName} in specified folders”

岁酱吖の 提交于 2019-12-08 08:47:14
问题 I am simply trying to load sln files in to Visual NDepend and keep getting this error: Can't find the .NET assembly {AssemblyName} in specified folders. Has it been compiled properly? Is the NDepend project missing the containing folder of the .NET aseembly? The weirdest thing is that this error doesn't occur for the same assemblies under a different path. For example: The error won't occur in assemblies under the path C:\code\depot\Product\Stage\IA\ , and will occur under C:\code\depot

“Can't find the .NET assembly {AssemblyName} in specified folders”

霸气de小男生 提交于 2019-12-06 16:06:33
I am simply trying to load sln files in to Visual NDepend and keep getting this error: Can't find the .NET assembly {AssemblyName} in specified folders. Has it been compiled properly? Is the NDepend project missing the containing folder of the .NET aseembly? The weirdest thing is that this error doesn't occur for the same assemblies under a different path. For example: The error won't occur in assemblies under the path C:\code\depot\Product\Stage\IA\ , and will occur under C:\code\depot\Product\IA The steps I am taking while using Visual NDepend: Open NDepend Click on Analyze VS solutions and

Only keep used types and remove unused types

跟風遠走 提交于 2019-12-06 03:48:31
Is there any way to remove unused types/code from a project. lets say I'm using NAudio (source code) in my console application and I'm only using the WaveIn class from it. Is there any way for me to remove unused classes from the code and only keep the WaveIn class and the classes WaveIn depends upon? Something down the line of tree shaking Ndepend was the answer from t in Types let depth0 = t.DepthOfIsUsedBy("NAudioTrim.Program") where depth0 >= 0 orderby depth0 select new { t, depth0 } where NAudioTrim.Program contains the entry point of my application and contains the used types. Once you

Setting up NCover for NUnit in FinalBuilder [closed]

China☆狼群 提交于 2019-12-04 14:49:18
Solved: Look at the bottom of this question for the working configuration I am attempting to set up NCover for usage in my FinalBuilder project, for a .NET 4.0 C# project, but my final coverage output file contains no coverage data. I am using: NCover 3.3.2 NUnit 2.5.4 FinalBuilder 6.3.0.2004 All tools are the latest official as of today. I've finally managed to coax FB into running my unit tests under NCover for the .NET 4.0 project, so I get Tests run: 184, ... , which is correct. However, the final Coverage.xml file output from NCover is almost empty, and looks like this: <?xml version="1.0

What is Abstractness vs. Instability Graph?

£可爱£侵袭症+ 提交于 2019-12-03 23:53:18
I recently used NDepend and it produced a good report on my .net assemblies and related pdbs. The most interesting thing I found in the report was abstractness vs. instability graph. I wanted to understand this in real detail, I read their docs and online metrices but it could only help to an extent. Primarily I wish to understand how to evaluate the graph correctly and techniques to control abstractness with stability. There's a very good article here that talks on this but what more in addition to this I need is 'how do I control this ? [controlling abstractness with stability]' Abstractness

Why Does Lack of Cohesion Of Methods (LCOM) Include Getters and Setters

独自空忆成欢 提交于 2019-12-03 08:35:52
问题 I am looking at the LCOM metric as shown here, http://www.ndepend.com/Metrics.aspx So we are saying a few things, 1) A class is utterly cohesive if all its methods use all its instance fields 2) Both static and instance methods are counted, it includes also constructors, properties getters/setters, events add/remove methods If I look at a class such as this, public class Assessment { public int StartMetres { get; set; } public int EndMetres { get; set; } public decimal? NumericResponse { get;

Do you know any alternative to NDepend for architects? [closed]

元气小坏坏 提交于 2019-12-03 00:18:31
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . do you know any software similar to NDepend? I've got it just recently, and found it very useful. It helped me a lot, but for now i don't have a possibility to buy a professional version. So, is there any alternative (maybe, open-source)? Preferably, free. But not necessarily. Maybe, with a little bit more

Why Does Lack of Cohesion Of Methods (LCOM) Include Getters and Setters

三世轮回 提交于 2019-12-03 00:05:44
I am looking at the LCOM metric as shown here, http://www.ndepend.com/Metrics.aspx So we are saying a few things, 1) A class is utterly cohesive if all its methods use all its instance fields 2) Both static and instance methods are counted, it includes also constructors, properties getters/setters, events add/remove methods If I look at a class such as this, public class Assessment { public int StartMetres { get; set; } public int EndMetres { get; set; } public decimal? NumericResponse { get; set; } public string FreeResponse { get; set; } public string Responsetype { get; set; } public string

Getting list of types that are effected by an extension method in cqlinq

。_饼干妹妹 提交于 2019-12-01 23:35:49
How to get the list of types that are extended by a extension method in ndepend cqlinq? Using reflection to code this seems a bit of donkey work where ndepend is already there. NDepend code model doesn't have a straight way to resolve the method parameter type. So we can come up with a satisfying answer with code query relying on string formatting extended type name, extracted from the method name. But this query is overly complex and there are edge cases where it won't work properly (explained below). Here is the code query, it runs fast even on large code base thanks to the use of a