无法在Visual Studio 2017 RC

时间:2016-11-19 09:22:44

标签: xamarin.forms visual-studio-2017

我刚刚安装了Visual Studio 2017 RC来试用一些新功能,比如Xamarin Form Previewer。但我无法构建使用项目模板创建的Xamarin Forms项目。得到以下错误。

  

严重级代码描述项目文件行抑制状态   加载程序集时出现错误异常:System.IO.FileNotFoundException:无法加载程序集' Xamarin.Android.Support.v7.RecyclerView,Version = 1.0.0.0,Culture = neutral,PublicKeyToken ='。也许它在Mono for Android配置文件中不存在?   文件名:' Xamarin.Android.Support.v7.RecyclerView.dll'      at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference,ReaderParameters parameters)      在Xamarin.Android.Tasks.ResolveAssemblies.AddAssemblyReferences(DirectoryAssemblyResolver解析器,ICollection`1程序集,AssemblyDefinition程序集,布尔topLevel)      在Xamarin.Android.Tasks.ResolveAssemblies.Execute(DirectoryAssemblyResolver解析器)App1.Droid

提前谢谢

1 个答案:

答案 0 :(得分:1)

https://developercommunity.visualstudio.com/content/problem/2853/the-android-project-in-the-default-xamarin-forms-t.html

这也适用于我:简而言之,删除所有nuget包并重新安装Xamarin.Forms,它也将重新安装丢失的包