简体   繁体   中英

Finding assembly dependencies in a project

I have a solution where one of the references is refering to google.protobuff v3.1.0.0, but when building the solution I get the older version google.protobuff v3.0.0.0.

From what I gather one of the other references in the project is refering to v3.0.0.0 and overriding v3.1.0.0, but how can I find who's referring to it? there are tons of references in the project.

I tried using Analyze Assembly Dependencies, but it shows that google.protobuff.dll is dangling (means no one depends on it).

Thank you, Ofir

You can check which project uses a particular assembly and which version, using the Solution Explorer.

Example - searching for the Newtonsoft.Json assembly:

解决方案资源管理器搜索

Also, if your assembly is coming from a Nuget package, right-click your solution and select " Manage NuGet Packages for Solution " and then " Consolidate " to check if there are different versions of the package/assembly in the solution:

Nuget巩固

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM