在 Visual Studio 2015 中创建新的 Blank Xamarin.Form Portable 项目时,出现“包安装错误”...
Could not add all the required pacakges to the project. The following packages failed to install from C:....Xamarin\4.0.3.214\Packages:
Xamarin.Form.2.0.0.6482: Could not install package Xamarin.Form.2.0.0.6482.
You are trying to install this package into a project that targets .NETFramework,Version=v4.0
最佳答案
看起来您可能需要正确设置 PCL 的配置文件。
这些是我在创建新的 Xam.Forms 应用程序时获得的选项:
从这里 question他们设置了这样的配置文件:
I had a similar issue using Visual Studio and I've found that the following combination in the PCL works:
- .NET Framework 4.5
- Windows Phone Silverlight 8
- Xamarin.Android
- Xamarin.iOS
关于Xamarin 包安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37005784/