编译时“ LinkAssemblies”任务失败

时间:2019-07-14 18:33:20

标签: c# xamarin xamarin.android

我写了一些非常简单的代码来测试Xamarin功能并遇到了这个问题

我已经尝试清理解决方案和项目,重新编写新项目中的所有代码,将项目移至C:磁盘

Error       The "LinkAssemblies" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'JvlivsSays, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'JvlivsSays.dll'
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() JvlivsSays          

“ JvlivsSays”是项目和解决方案的名称,没有其他错误

1 个答案:

答案 0 :(得分:0)

我发现此错误是在存在其他任何错误时出现的,对于我来说,当我在.axml布局文件中修正拼写错误时,一切都会按预期进行。