6

I've just started using NDepend and am trying to analyse a solution.

This warning appears when I add the solution's assemblies and it will not load any assemblies with the warning:

Cant' load the assembly {MyAssembly}: Several .NET assemblies have the name {MyAssembly} but they are different: ...list of the .dlls in the project which contain this assembly

What could be causing this? I am using a common AssemblyInfo.cs file as well as the standard one to set some common attributes but there are no conflicts between these attributes.

4

3 に答える 3

2

David, the error is that in the set of input folders you provided in your NDepend project, NDepend found several different occurences of {MyAssembly.dll}. Meaning for example you have a {MyAssembly v1.0.1} file and a {MyAssembly v1.0.2} file.

Apparently this is something you were not aware of, so NDepend did a good job at exhibiting a flaw.

[プロジェクト プロパティ] > [分析するコード] パネルで、アセンブリ {MyAssembly} をマウスでポイントします。表示されるツールチップには、さまざまな {MyAssembly.dll} ファイルのさまざまな場所へのパスがいくつか表示されます。

于 2010-09-08T13:50:00.187 に答える
0

ソリューションに1つのプロジェクト(テストプロジェクト)がありましたが、他の多くのアセンブリをビルドして参照するように設定されていませんでした。このアセンブリをNDependから選択解除しても、エラーが発生しました。

于 2010-10-28T12:25:30.240 に答える