2017-08-27 103 views
0

我正在使用Visual Studio for mac。 我試圖在nuget上下載SocketIoClientDotNet。 但我未能安裝該軟件包。帶有Visual Studio for Mac的SocketIoClientDotNet無法安裝

[MY SPEC] 的Visual Studio社區2017的Mac 版本7.1(1297建立) 運行時間: 單5.2.0.215(d15-3/da80840)(64位) GTK + 23年2月24日(羅利主題)

包版本:502000215

的NuGet 버전:4.3.0.2418

.NET核心 運行時:未安裝 SDK:未安裝 MSBuild的軟件開發工具包:/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

Xamarin.Profiler 1.5.5 /應用/ Xamarin Profiler.app/內容/ MacOS的/ Xamarin探查

蘋果開發工具Xcode中 8.3.3(12175.1) 建立8E3004b

Xamarin.Mac 版本:3.6.0.19(Visual Studio的社區)

Attempting to gather dependency information for package 'SocketIoClientDotNet.0.9.13' with respect to project 'Chat', targeting '.NETPortable,Version=v4.5,Profile=Profile111' 
    GET https://api.nuget.org/v3/registration3-gz-semver2/socketioclientdotnet/index.json 
    OK https://api.nuget.org/v3/registration3-gz-semver2/socketioclientdotnet/index.json 1290ms 
Total number of results gathered : 2 
Gathering dependency information took 1.3 sec 
Summary of time taken to gather dependencies per source : 
https://api.nuget.org/v3/index.json - 1.3 sec 
Attempting to resolve dependencies for package 'SocketIoClientDotNet.0.9.13' with DependencyBehavior 'Lowest' 
Resolving dependency information took 0 ms 
Resolving actions to install package 'SocketIoClientDotNet.0.9.13' 
Resolved actions to install package 'SocketIoClientDotNet.0.9.13' 
Retrieving package 'SocketIoClientDotNet 0.9.13' from 'nuget.org'. 
For adding package 'SocketIoClientDotNet.0.9.13' to project 'Chat' that targets 'portable45-net45+win8+wpa81'. 
Install failed. Rolling back... 
Package 'SocketIoClientDotNet.0.9.13' does not exist in project 'Chat' 
Package 'SocketIoClientDotNet.0.9.13' does not exist in folder '/Users/LSH/Work/Dev/WebServer/Chat/packages' 
Executing nuget actions took 139.18 ms 
Could not install package 'SocketIoClientDotNet 0.9.13'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', 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. 

回答

2

的SocketIoClientDotNet 0.9.13 NuGet包有兩個便攜式組件:

lib/portable-win81+wpa81 
lib/portable-wpa81+wp81 

這些不映射到任何已知的便攜式類庫(PCL)配置文件,以便將的NuGet不允許你把它安裝到便攜式類庫項目。

最新SocketIoClientDotNet beta版本1.0.2-β1沒有PCL組件。相反,它有一個.NET標準1.3程序集。不幸的是,你不能使用在PCL項目無論是。

所以,無論是你,另一個NuGet包,提供你所需要的,同時還支持PCL項目,或者你將不得不修改你的項目是一個.NET標準的項目,目標至少.NET標準1.3。

相關問題