简体   繁体   中英

A tool to find projects erroneously referenced by dll in Visual Studio 2008 solutions

I have a Visual Studio 2008 solution containing a lot of projects with references to each other.

I didn't create the solution, and a lot of references that could be made by project are actually made by dll (referencing the dll of the /bin/Debug folder of the project). This is of course a problem since it creates weird behaviour when you clean or rebuild the solution, like the compiler complaining about dll versions not being OK.

I don't seem to be able to spot easily which projects are erroneously referenced by dll, so my only option now seems to look into the references from each .csproj files to spot the errors and correct them.

The problem is that my source control holds around 100 solutions with the same potential issues, each one containing tens of projects. Doing it manually may take a lot of time, so I was wondering if there is any tool out there that can rebuild references and dependencies easily?

A tool such as ReSharper by Jet Brains may be what you're looking for.

This will allow you to see which references in your projects are not being used. (and more)

最后,我使用了一个通用解决方案,其中涉及一个grep工具来查找所有包含/ bin / Debug的.csproj文件。

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