我已经创建了一个PCL项目,只要我尝试从Nuget添加引用,就会出现此错误:(所有包都会出现此错误)
无法安装软件包'Microsoft.Bcl.Build 1.0.13'。你在尝试 将此包安装到目标项目中 'portable-Unsupported',但包不包含任何程序集 与该框架兼容的引用或内容文件。 有关更多信息,请与软件包作者联系。 System.InvalidOperationException:无法安装包 'Microsoft.Bcl.Build 1.0.13'。您正在尝试安装此软件包 进入一个针对'portable-Unsupported'的项目,但是包 不包含任何程序集引用或内容文件 与该框架兼容。有关更多信息,请联系 包裹作者。在NuGet.ProjectManager.ExtractPackageFilesToProject (IPackage包)[0x00000] in:0 at NuGet.ProjectManager.AddPackageReferenceToProject(IPackage包) [0x00000] in:NuGet.ProjectManager.Execute中的0 (NuGet.PackageOperation操作)[0x00000] in:0
在NuGet.ProjectManager.Execute(IPackage包, IPackageOperationResolver解析器)[0x00000] in:0 在NuGet.ProjectManager.AddPackageReference(IPackage包,布尔值 ignoreDependencies,Boolean allowPrereleaseVersions)[0x00000] in :NuGet.ProjectManager.AddPackageReference为0 (System.String packageId,NuGet.SemanticVersion version,Boolean ignoreDependencies,Boolean allowPrereleaseVersions)[0x00000] in :0点 ICSharpCode.PackageManagement.SharpDevelopPackageManager.AddPackageReference (IPackage包,布尔值ignoreDependencies,布尔值 allowPrereleaseVersions)[0x00000] in:0 at ICSharpCode.PackageManagement.SharpDevelopPackageManager.InstallPackage (IPackage包,ICSharpCode.PackageManagement.InstallPackageAction installAction)[0x00000] in:0 at ICSharpCode.PackageManagement.PackageManagementProject.InstallPackage (IPackage包,ICSharpCode.PackageManagement.InstallPackageAction installAction)[0x00000] in:0 at ICSharpCode.PackageManagement.InstallPackageAction.ExecuteCore() [0x00000] in:0 at ICSharpCode.PackageManagement.ProcessPackageAction.Execute() [0x00000] in:0 at ICSharpCode.PackageManagement.PackageActionRunner.Run(IPackageAction) 动作)[0x00000] in:0 at ICSharpCode.PackageManagement.PackageViewModel.InstallPackage (IEnumerable`1 packageOperations)[0x00000] in:0
在ICSharpCode.PackageManagement.PackageViewModel.InstallPackage() [0x00000] in:0 at ICSharpCode.PackageManagement.PackageViewModel.TryInstallingPackage()[0x00000] in:0
是有关我的环境的信息
=== Xamarin Studio ===
Version 4.2.2 (build 2)
Runtime:
Mono 3.2.5 ((no/964e8f0)
GTK+ 2.24.20 theme: Raleigh
GTK# (2.12.0.0)
Package version: 302050000
=== Xamarin.Android ===
Version: 4.10.1 (Business Edition)
Android SDK: /Users/luigisaggese/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
1.6 (API level 4)
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
3.2 (API level 13)
4.0 (API level 14)
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
Java SDK: /usr
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
=== Apple Developer Tools ===
Xcode 5.0.2 (3335.32)
=== Xamarin.iOS ===
Version: 7.0.5.2 (Business Edition)
Build date: 2013-02-12 20:04:08-0500
=== Xamarin.Mac ===
Xamarin.Mac: Not Installed
=== Operating System ===
Mac OS X 10.8.5
答案 0 :(得分:5)
Xamarin的可移植类库由NuGet v2.7.2支持。
我相信Matt Ward的0.8版Xamarin Studio插件基于NuGet v2.7.2。
可以在此处找到安装说明:https://github.com/mrward/monodevelop-nuget-addin#installation