我下载了Xamarin Studio来构建我的第一个应用程序,但是我遇到了一些问题,我还没有找到解决方案。
首先,我用App Xamarin.Forms空白模板创建了一个新的解决方案。当我试图构建它时,出现了一些错误(我没有更改模板中的一行):
The type or namespace name 'Xamarin' could not be found (are you mission a using directive or an assembly reference?)
The type or namespace name 'Application' could not be found (are you mission a using directive or an assembly reference?)然后我假设Xamarin.Forms包丢失了,所以我点击了项目>添加NuGet软件包.,然后尝试安装Xamarin.Forms包。这里是我陷入困境的地方,因为会显示一个新的错误:
Could not install package 'Xamarin.Forms 1.3.3.6323'. You are trying to install this package into a project that targets 'portable-Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.我希望得到任何帮助,因为我没有找到任何解决办法。
发布于 2015-07-16 20:39:47
错误消息表明您没有安装可移植类库(PCL)。
如果您在Mac上,可以通过安装Mono开发工具包(MDK)来安装这些设备。
如果您是在Windows上,这个过程会更复杂一些。要在Windows上安装便携式类库,有三个选项:
2.的一个问题是,安装便携式库参考程序集4.6没有将它们安装到正确的位置,而是将一个PortableReferenceAssemblies.zip文件安装到目录中:
C:\Program Files (x86)\Microsoft .NET Portable Library Reference Assemblies 4.6这个PortableReferenceAssemblies.zip文件包含三个目录(4.0、4.5和4.6),需要提取它们并复制到PCL目录中:
C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable为Xamarin Studio安装便携式类库文章中有更多的细节,但上面的内容应该给您提供一个所需内容的概述。
https://stackoverflow.com/questions/31455925
复制相似问题