Xamarin Live Reload错误

时间:2018-07-28 12:24:58

标签: visual-studio xamarin xamarin.forms

在尝试使实时刷新工作时出现以下错误。可能是什么原因?

扩展版本:0.3.27

Nuget软件包版本:0.3.27 [仅安装在.netstandard库中]

Severity    Code    Description Project File    Line    Suppression State
Error       Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Live.Reload, Version=0.3.27.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Xamarin.Live.Reload.dll'
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
   at Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(DirectoryAssemblyResolver resolver, ICollection`1 assemblies, AssemblyDefinition assembly, Boolean topLevel)
   at Xamarin.Android.Tasks.ResolveAssemblies.Execute(DirectoryAssemblyResolver resolver)   XamarinTest.Droid           

1 个答案:

答案 0 :(得分:0)

来自文档:
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/xaml/live-reload

  

加载程序集时发生异常:System.IO.FileNotFoundException:   无法加载程序集'Xamarin.Live.Reload,Version = 0.3.27.0,   文化=中性,PublicKeyToken ='。宿主项目应使用   PackageReference而不是packages.config