简体   繁体   English

查找我的解决方案中的哪个项目引用了 Framework 1.1

[英]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:在解决方案资源管理器中:

  1. Expand Project展开项目
  2. Expand References展开参考
  3. Select the DLL causing issue (In your case it would be System.XML )选择导致问题的 DLL(在您的情况下是System.XML
  4. Right Click and select Properties右键单击并选择Properties
  5. Set Specific Version property to FalseSpecific Version属性设置为False

This should work in your case too!这也适用于您的情况!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以将基于DotNet Framework 4.5生成的dll文件用作DotNet Framework 1.1作为项目​​参考? - It's possible to use a dll file built on DotNet Framework 4.5 into a DotNet Framework 1.1 as project reference? 在涉及edmx的项目上失败了脚手架 - Fails to Scaffolding on project which has a reference to edmx 本身具有多个DLL的项目参考 - Project Reference which has Multiple DLL itself 添加对程序集的引用,而程序集又具有项目引用 - Add reference to assembly which in turn has a project reference 在我的解决方案中将参考项目winform添加到我的单元测试项目会导致“参考错误” - Add reference project winform to my unit test project in my solution causes "reference error" 无法从我的解决方案中的新项目添加新引用 - Can not add a new reference from an new project in my solution 我的项目中安装了哪个版本的Entity Framework? - Which version of Entity Framework is installed in my project? 查找解决方案中使用了给定dll中的哪些类型 - find which types from given dll are used in my solution 我可以在同一解决方案中使用.NET Framework 4.5.2和4.6.2的另一个项目吗? - Can I have a project which uses .NET Framework 4.5.2 and another project with 4.6.2 in the same solution? 在具有 .NET Framework 4.7.1 的计算机上运行 MVC 项目 - Running a MVC project in a computer which has .NET Framework 4.7.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM