[英]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. 我有一个Visual Studio 2008解决方案,其中包含很多相互引用的项目。
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). 我没有创建解决方案,而项目可能做出的许多引用实际上都是由dll做出的(引用项目的/ bin / Debug文件夹的dll)。 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.
这当然是一个问题,因为它在您清理或重建解决方案时会产生奇怪的行为,例如编译器抱怨dll版本不正确。
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. 我似乎无法轻松发现dll错误引用了哪些项目,因此,我现在唯一的选择似乎是查看每个.csproj文件的引用以发现错误并更正它们。
The problem is that my source control holds around 100 solutions with the same potential issues, each one containing tens of projects. 问题是我的源代码控制拥有大约100个具有相同潜在问题的解决方案,每个解决方案都包含数十个项目。 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. 您正在寻找诸如Jet Brains的ReSharper之类的工具。
This will allow you to see which references in your projects are not being used. 这样,您可以查看项目中未使用哪些引用。 (and more)
(和更多)
最后,我使用了一个通用解决方案,其中涉及一个grep工具来查找所有包含/ bin / Debug的.csproj文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.