无法在 Visual Studio 2017 RC 中构建 Xamarin Forms 项目

Not able to build Xamarin Forms Project in Visual Studio 2017 RC

我刚刚安装了 Visual Studio 2017 RC 来试用 Xamarin 表单预览器等一些新功能。但是我无法构建使用项目模板创建的 Xamarin Forms 项目。出现以下错误。

Severity Code Description Project File Line Suppression State Error Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v7.RecyclerView, Version=1.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile? File name: 'Xamarin.Android.Support.v7.RecyclerView.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) App1.Droid

提前致谢

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

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