[英]Find which project in my solution has a reference to Framework 1.1
My solutions contains lots of project (33), some vb, mostly c#.我的解决方案包含很多项目 (33),一些 vb,主要是 c#。 Now in one of those projects there is a reference to the 1.1 framework.现在在其中一个项目中引用了 1.1 框架。 My solution builds successfully, but won't run.我的解决方案构建成功,但无法运行。 It gives me the error: "Could not load file or assembly 'System.xml, Version=1.0.5000' or one of it's dependencies. The system cannot find the file specified".它给了我错误:“无法加载文件或程序集 'System.xml, Version=1.0.5000' 或其依赖项之一。系统找不到指定的文件”。
When I install the 1.1 framework it works just fine.当我安装 1.1 框架时,它工作得很好。 I want to remove it so the 1.1 is not needed anymore to run my application.我想删除它,以便不再需要 1.1 来运行我的应用程序。
How can I find where this reference is in all those projects?如何在所有这些项目中找到此参考文献的位置? I know i've had to add in once to get a external lib working but now I stuck with the 1.1 framework...我知道我必须添加一次才能使外部库工作,但现在我坚持使用 1.1 框架...
Thx for any help.感谢您的帮助。
In your solution root, run this from the command-line:在您的解决方案根目录中,从命令行运行:
findstr /I /S "1.0.5000" *.csproj
findstr /I /S "1.0.5000" *.vbproj
that will list all of the C# and VB.NET project files that contain references to any 1.0.5000-versioned assemblies.这将列出所有包含对任何 1.0.5000 版本程序集的引用的 C# 和 VB.NET 项目文件。
Few days ago, I faced the same issue and in order to resolve it these steps were followed:几天前,我遇到了同样的问题,为了解决它,我遵循了以下步骤:
In Solution Explorer:在解决方案资源管理器中:
System.XML
)选择导致问题的 DLL(在您的情况下是System.XML
)Properties
右键单击并选择Properties
Specific Version
property to False
将Specific Version
属性设置为False
This should work in your case too!这也适用于您的情况!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.