简体   繁体   English

查找Visual Studio 2008解决方案中dll错误引用的项目的工具

[英]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.

相关问题 在Visual Studio 2008中复制和修改解决方案(带有安装项目) - Copy and modify solutions (with setup projects) in Visual Studio 2008 Visual Studio 2008:从具有多个项目的解决方案创建单个DLL - Visual Studio 2008: Creating Single DLL from Solution with Many Projects 在Visual Studio中调试引用的DLL - Debugging referenced DLL in Visual Studio Visual Studio调试引用的DLL - Visual Studio Debugging Referenced DLL 我可以在Visual Studio 2015中打开旧的Visual Studio解决方案(2005,2008,2010,2013)而无需升级项目吗? - Can I open old Visual Studio Solutions (2005,2008, 2010,2013) in Visual Studio 2015 without upgrading the projects? 在不同版本的Visual Studio中打开项目和解决方案 - Opening projects and solutions in different versions of Visual Studio 在Visual Studio中对许多项目的解决方案进行更好的模糊处理? - Better obfuscating in Visual Studio for solutions with many projects? Visual Studio 解决方案:这些解决方案的项目是否太多? - Visual Studio solutions: Do these solutions have too many projects? 在Visual Studio 2008中将应用程序与项目集成吗? - Integrating applications with projects in Visual Studio 2008? Visual Studio 2008-将两个项目部署到设备 - Visual Studio 2008 - Deploy two projects to device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM