使用最新的Xamarin Studio,构建错误,指出"无法找到.NetPortable"框架

Mar*_*son 5 .net portable-class-library xamarin

我正在使用最新的Xamarin Studio,甚至尝试过alpha通道,我仍然遇到同样的问题.

/Library/Frameworks/Mono.framework/Versions/3.2.0/lib/mono/4.0/Microsoft.Common.targets:警告:无法找到与目标框架名字对象'.NETPortable,Version = v4.0,Profile相对应的框架= Profile3' 的.框架程序集引用将从GAC解析,这可能不是预期的行为.

这只是创建一个空的PCL项目.我没有看到任何帖子引导我得到任何答案.我的目标是Mono 3.2,我尝试了几个配置文件.

有任何想法吗?

jbt*_*ule 4

由于您的目标配置文件是配置文件 3.net 4.0 和 Silverlight4),因此如果旧版本早于单声道中的可移植支持并伪造它,则唯一的方法和旧版本可以工作(我相信这将是 3.0.12 之前的某个版本并伪造)这可能不是你想要的,你可能想改变你的目标)。

Mono 3.1.2是第一个可以开箱即用编译 PCL 库的版本,因为它是与 Facade 程序集一起分发的

/Library/Frameworks/Mono.framework/Versions/3.1.2/lib/mono/xbuild-frameworks/.NETPortable

为了:

  • v4.0、Profile136 .NET Framework 4、Silverlight 5、Windows Phone 8、Windows 应用商店应用程序 (Windows 8)
  • v4.0、Profile14 .NET Framework 4、Silverlight 5
  • v4.0、Profile147 .NET Framework 4.0.3、Silverlight 5、Windows Phone 8、Windows 应用商店应用程序 (Windows 8)
  • v4.0、Profile158 .NET Framework 4.5、Silverlight 5、Windows Phone 8、Windows 应用商店应用程序 (Windows 8)
  • v4.0、Profile19 .NET Framework 4.0.3、Silverlight 5
  • v4.0、Profile24 .NET Framework 4.5、Silverlight 5
  • v4.0、Profile37 .NET Framework 4、Silverlight 5、Windows 应用商店应用程序 (Windows 8)
  • v4.0、Profile42 .NET Framework 4.0.3、Silverlight 5、Windows 应用商店应用程序 (Windows 8)
  • v4.0、Profile47 .NET Framework 4.5、Silverlight 5、Windows 应用商店应用程序 (Windows 8)
  • v4.0、Profile5 .NET Framework 4、Windows 应用商店应用程序 (Windows 8)
  • v4.0、Profile6 .NET Framework 4.0.3、Windows 应用商店应用程序 (Windows 8)
  • v4.5、Profile49 .NET Framework 4.5、Windows Phone 8
  • v4.5、Profile7 .NET Framework 4.5、Windows 应用商店应用程序 (Windows 8)
  • v4.5、Profile78 .NET Framework 4.5、Windows Phone 8、Windows 应用商店应用程序 (Windows 8)

Mono 3.2.0 目前没有。