简体   繁体   English

如何解决解决方案中现有项目的 c# CS0006 错误

[英]How solve c# CS0006 error from a existing project in solution

I've lost hours trying solve this CS0006 Error, so I could solve doing what following:我花了几个小时试图解决这个 CS0006 错误,所以我可以解决以下问题:

  • Removing project reference.删除项目引用。

  • Configuring solution to Debug in Active Solution Configuration and choosing ANY CPU in Active Solution Platform.将解决方案配置为在活动解决方案配置中进行调试,并在活动解决方案平台中选择任何 CPU。

  • Solving errors in project解决项目中的错误

  • Rebuilding a solution.重建解决方案。

  • Referencing the Project Again.再次引用项目。

Is there another method to solve this issue?有没有其他方法可以解决这个问题?

我之前遇到过这个问题,通过手动删除 bin 和 obj 目录、清理解决方案和重建解决了这个问题。

暂无
暂无

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

相关问题 Compiling.Net Framework Project 在命令提示符下给出 CS0006 而 Visual Studio 中没有错误,为什么? - Compiling .Net Framework Project at command prompt give CS0006 while there is not error in Visual Studio, why? 错误CS0006:找不到元数据文件'MongoDB' - Error CS0006: Metadata file 'MongoDB' could not be found 错误 CS0006 元数据文件; 找不到fileuploadcontrol.dll' - error CS0006 metadata file; fileuploadcontrol.dll'could not be found vs 2015 Error CS0006 Metadata file.dll'找不到 - vs 2015 Error CS0006 Metadata file .dll' could not be found CSC错误CS0006:找不到元数据文件'... dll' - 但文件存在 - CSC error CS0006: Metadata file '…dll' could not be found - But file exists 错误CS0006:找不到元数据文件'C:\\ Users \\ ppData \\ Local \\ Temp \\ .sonarqube \\ .static \\ csharp_1.11.0 \\ SonarAnalyzer.zip \\ SonarAnalyzer.dll - error CS0006: Metadata file 'C:\Users\ppData\Local\Temp\.sonarqube\.static\csharp_1.11.0\SonarAnalyzer.zip\SonarAnalyzer.dll' could not be found 如何将cs文件添加到现有C#项目? - How do I add a cs file to an existing C# project? CS7036 C# 如何解决错误按钮 onclick - CS7036 C# How to solve error button onclick 如何使用roslyn将现有项目添加到c#解决方案中? - How add existing project to c# solution with roslyn? 将C ++项目添加到解决方案时出现CS1705错误 - CS1705 error while adding a C++ project to solution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM