Xamarin窗体应用程序生成问题缺少DLL

时间:2018-11-16 01:43:41

标签: visual-studio xamarin xamarin.forms

我一直在解决此错误,清理,重建,删除obj/bin文件和重新启动的建议对我没有用。任何建议表示赞赏!

The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Xamarin_Test_Project, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Xamarin_Test_Project.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(DirectoryAssemblyResolver 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.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() Xamarin_Test_Project.Android

1 个答案:

答案 0 :(得分:0)

清洁 解决方案

从顶部开始一次构建一个项目-不重建解决方案-一次仅构建一个项目。

完成后,尝试 F5 调试。

完整文档here