简体   繁体   English

生成错误“无法解决对程序集的依赖”

[英]build error 'Cannot resolve dependency to assembly '

I'm amateur in c#, I learned basics and start programming, I try to download open source projects from svn of sf.net but in compile of most of them I faced with an error like this: 我是C语言的业余爱好者,我学习了基础知识并开始编程,我尝试从sf.net的svn下载开源项目,但是在编译其中的大多数项目时,我都遇到了如下错误:

build error, 'Cannot resolve dependency to assembly '

and in continue of error it give a publicKeyToken and no line give me. 并继续出现错误,它给出了publicKeyToken而没有行给我。 What is wrong? 怎么了? I just open project with Visual studio .net 2010 and try to debug. 我只是使用Visual Studio .net 2010打开项目,然后尝试调试。 please help me. 请帮我。

Seems that you have some assembly reference which may not exists or may have wrong details. 似乎您有一些程序集引用,该引用可能不存在或细节有误。 You need to either correct the details in the web.config or you need to install assembly reference to your c drive 您需要更正web.config中的详细信息,或者需要将程序集引用安装到c驱动器

Cannot resolve dependency to assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' because it has not been preloaded. 无法解析对程序集'System.Core,版本= 4.0.0.0,区域性=中性,PublicKeyToken = b77a5c561934e089'的依赖性,因为它尚未预加载。 When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on >demand through the ReflectionOnlyAssemblyResolve event. 使用ReflectionOnly API时,必须通过ReflectionOnlyAssemblyResolve事件按需预先加载或加载依赖程序集。

To resolve it you can just switch off in VisualStudio: Debug->Exceptions->System.IO 要解决它,您可以在VisualStudio中关闭:Debug-> Exceptions-> System.IO

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

相关问题 “无法解析对程序集的依赖性”错误的原因 - Reason for “Cannot resolve dependency to assembly” error 无法解决对程序集的依赖? - Cannot resolve dependency to assembly? 未知的生成错误,“无法解析对程序集的依赖”,WPFToolkit,版本= 3.5.40128.1,区域性=中性 - Unknown build error, 'Cannot resolve dependency to assembly 'WPFToolkit, Version=3.5.40128.1, Culture=neutral 未知的生成错误无法解析对System.Windows的依赖性 - Unknown build error Cannot resolve dependency to System.Windows 无法解析对程序集“PostSharp”的依赖性,因为它尚未预加载 - Cannot resolve dependency to assembly 'PostSharp' because it has not been preloaded 无法解决对程序集'Microsoft.SharePoint.Client.Runtime的依赖关系? - Cannot resolve dependency to assembly 'Microsoft.SharePoint.Client.Runtime? 无法解决“未找到应用程序依赖项清单中指定的程序集”错误 - Cannot resolve “An assembly specified in the application dependencies manifest was not found” error 如何解决dotnet核心中的程序集依赖性? - how to resolve assembly dependency in dotnet core? 无法解决循环依赖问题 - cannot resolve circular dependency issue Visual Studio Team Services:构建错误(无法解析程序集引用) - Visual Studio Team Services: Build Error (Assembly reference cannot be resolved)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM