Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Visual Studio filenotfound:无法加载程序集_C#_Visual Studio - Fatal编程技术网

C# Visual Studio filenotfound:无法加载程序集

C# Visual Studio filenotfound:无法加载程序集,c#,visual-studio,C#,Visual Studio,我删除了项目中的bin和obj文件夹,重建时突然出现以下错误: Severity Code Description Project File Line Suppression State Error The "ResolveLibraryProjectImports" task failed unexpectedly. System.IO.FileNotFoundException: Could not load assembly 'Rubix_solver,

我删除了项目中的bin和obj文件夹,重建时突然出现以下错误:

Severity    Code    Description Project File    Line    Suppression State
Error       The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Rubix_solver,     Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in     the Mono for Android profile?
File name: 'Rubix_solver.dll'
   at     Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference     reference, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String     fullName)
   at     Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyReso    lver res, ICollection`1 jars, ICollection`1 resolvedResourceDirectories,     ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
   at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
   at     Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecution    Host.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.     <ExecuteInstantiatedTask>d__26.MoveNext()    Rubix_solver.Android            
严重性代码描述项目文件行抑制状态
错误“ResolveLibraryProjectImports”任务意外失败。
System.IO.FileNotFoundException:无法加载程序集“Rubix_解算器,版本=0.0.0.0,区域性=中性,PublicKeyToken=”。也许它不存在于Mono for Android配置文件中?
文件名:'Rubix_solver.dll'
位于Java.Interop.Tools.Cecil.directorySassemblyResolver.Resolve(AssemblyNameReference,ReaderParameters参数)
位于Java.Interop.Tools.Cecil.directorySassemblyResolver.Resolve(字符串全名)
在Xamarin.Android.Tasks.ResolveLibrary ProjectImports.Extract(目录汇编res,ICollection`1 jars,ICollection`1 ResolvedResourceDirectory,ICollection`1 ResolvedAssetDirectory,ICollection`1 resolvedEnvironments)
在Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()中
位于Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ItaskeExecution Host.Execute()
位于Microsoft.Build.BackEnd.TaskBuilder。d_u26.MoveNext()Rubix_solver.Android

我已经尝试修复这个问题大约2个小时了,我在互联网上唯一能找到的就是修复你的系统dll,但我认为这个dll不是来自我的系统,而是由visual studio生成的。有人能帮我纠正这个错误吗?

检查您的参考资料。在引用中的某个地方有这个DLL

如果在引用中找不到它,请使用CRTL+F并对所有*.cs*.vb文件进行高级搜索,并搜索Rubix关键字


希望它能帮助你检查参考资料。在引用中的某个地方有这个DLL

如果在引用中找不到它,请使用CRTL+F并对所有*.cs*.vb文件进行高级搜索,并搜索Rubix关键字


希望对您有所帮助

如果您在同一解决方案中有第二个项目(例如单元测试),请将第一个项目引用为项目引用,而不是DLL引用

这还具有自动引用当前构建(调试或发布)的优势


另请参见:.

如果在同一解决方案中有第二个项目(例如单元测试),请将第一个项目引用为项目引用,而不是DLL引用

这还具有自动引用当前构建(调试或发布)的优势


另请参见:。

在您的bin目录中找不到Rubix_solver.dll。你需要把它放在那里。但是我们从来没有使用过Rubix_solver.dll,也从来没有把它放在那里。这就是我们的项目的名称检查您的参考资料。在引用中的某个地方有这个dll。如果您无法在引用中找到CRTL+F,请对所有*.cs*.vb文件进行高级搜索并搜索Rubixkeyword@OlivierJacot-Descombes我想这就是问题所在,我只是试着这么做,突然奏效了。谢谢你们两位。因为西蒙纳雷,我知道该去哪里找,奥利弗找到了答案!在您的bin目录中找不到Rubix_solver.dll。你需要把它放在那里。但是我们从来没有使用过Rubix_solver.dll,也从来没有把它放在那里。这就是我们的项目的名称检查您的参考资料。在引用中的某个地方有这个dll。如果您无法在引用中找到CRTL+F,请对所有*.cs*.vb文件进行高级搜索并搜索Rubixkeyword@OlivierJacot-Descombes我想这就是问题所在,我只是试着这么做,突然奏效了。谢谢你们两位。因为西蒙纳雷,我知道该去哪里找,奥利弗找到了答案!