可移植类库项目 - 未安装引用程序集? [英] Portable Class Library project - reference assemblies not installed?

查看:32
本文介绍了可移植类库项目 - 未安装引用程序集?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Mac 上使用 Xamarin Studio 版本 4.2.3(入门版;Mono 3.2.6;Xamarin.Android 版本 4.12.1;Xamarin.iOS 版本 7.2.02).

I'm using Xamarin Studio Version 4.2.3 on a Mac (Starter Edition; Mono 3.2.6; Xamarin.Android Version 4.12.1; Xamarin.iOS Version 7.2.02).

我创建了一个空白解决方案.我添加了一个 Android 应用程序项目和一个 iPhone 应用程序项目.构建和运行都正常.现在我已经添加了一个可移植类库 项目,我想从我的应用程序项目中链接到该项目.然而!我的 Portable Class Library 项目在我的 References 文件夹中为 .NET Portable Subset 引用显示错误,如下所示:

I created a blank solution. I added an Android application project and an iPhone application project. Both build and run okay. Now I've added a Portable Class Library project which I want to link to from my application projects. However! My Portable Class Library project is showing up an error in my References folder for the .NET Portable Subset reference, as follows:

未安装框架:.NETPortable,Version=v4.0,Profile=Profile136

Framework not installed: .NETPortable,Version=v4.0,Profile=Profile136

我该如何解决这个问题??

How do I resolve this??

此外,当我打开 Project Options 窗口并导航到 General 部分时,列出的唯一目标框架是:

Additionally, when I open the Project Options window and navigate to the General section, the only Target Frameworks listed are:

  • .NET Framework 4,
  • 银光 4,
  • Windows Phone 7,
  • Xbox 360.

没有 Xamarin.AndroidXamarin.iOS...

推荐答案

我从以下目录安装了 MDK(无论是什么??)...

I installed the MDK (whatever that is??) from the following directory...

http://download.xamarin.com/MonoFrameworkMDK/Macx86/MonoFramework-MDK-3.2.6.macos10.xamarin.x86.pkg

...这对我来说是固定的.无需卸载并重新安装我的 Xamarin 设置.

... and that fixed things for me. No need for an uninstall and reinstall of my Xamarin setup.

请注意,我必须退出并重新启动 Xamarin Studio 才能使更改生效.我还重新启动了我的 Mac!

Note that I had to quit and restart Xamarin Studio for the change to take effect. I also restarted my Mac for good measure!

这篇关于可移植类库项目 - 未安装引用程序集?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆