我已经在crossplotform中创建了应用程序,在运行我的应用程序时它显示以下错误。我已经尝试过清理解决方案并重新重建它但没有运气,我甚至尝试减少此应用程序的路径并且还无需重新安装和重新安装来自nuget包的xamarin.forms,即使在完成所有这些同样的错误后也是如此。
Severity Code Description Project File Line Suppression State Tool
Error The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'SnovasysChat.exe, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'SnovasysChat.exe.dll'
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName)
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() SMChat.Android
如何解决这个问题。
答案 0 :(得分:0)
尝试修复Visual Studio。我建议你使用Visual Studio 2017 :)
答案 1 :(得分:0)
尝试以管理员身份打开VS,或尝试更新到最新的VS studio版本。我曾经遇到过这个问题,在更新之后它就解决了。