Xamarin Error: Framework not installed: .NETPortable, Version=v4.5

不问归期 提交于 2019-11-30 22:12:08
Niels R.

If you don't have Visual Studio installed the following steps worked for me:

  1. Download the Portable Tools 2 extension and install it using the /buildmachine switch: PortableLibraryTools.exe /buildmachine

  2. Download Portable Class Libraries v4.6 and install it.

  3. Copy the contents (directories v4.0, v4.5 and v4.6) of C:\Program Files (x86)\Microsoft .NET Portable Library Reference Assemblies 4.6 into C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable (overwriting any existing files). [Backup the original files if you want to be on the safe side!]

That looks like you do not have the Portable Class Libraries installed on your machine.

Xamarin does not currently install the PCLs for you on Windows. Normally they are installed with Visual Studio but they are available as a separate download.

The PCLs are installed in the following directory on Windows:

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable

Check if you have that directory. If you do not have this directory you will need to install the Portable Class Library Tools first and then the Portable Class Libraries v4.6.

I suspect you may just be missing the v4.6 PCLs.

Profile78 is included as part of Portable Class Libraries v4.6. If you install that it puts a .zip file into the directory:

C:\Program Files (x86)\Microsoft .NET Portable Library Reference Assemblies 4.6

You will need to unzip that and extract the contents into the C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!