2017-08-27 2 views
0

Ich verwende Visual Studio für Mac. Ich habe versucht, SocketIoClientDotNet auf nugget herunterzuladen. Aber ich konnte das Paket nicht installieren.SocketIoClientDotNet mit Visual Studio für Mac kann nicht installiert

[MY SPEC] Visual Studio Gemeinschaft 2017 für Mac Version 7.1 (Build 1297) Laufzeit: Mono 5.2.0.215 (D15-3/da80840) (64-bit) GTK + 2.24.23 (Raleigh Thema)

Paketversion: 502000215

NuGet 버전: 4.3.0.2418

.NET-Core Laufzeit: Nicht SDK installiert ist: Nicht installiert MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

Xamarin.Profiler 1.5.5 /Anwendungen/Xamarin Profiler.app/ Contents/MacOS/Xamarin Profiler

Apple-Entwicklertools Xcode 8.3.3 (12.175,1) Bauen 8E3004b

Xamarin.Mac Version: 3.6.0.19 (Visual Studio Gemeinschaft)

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. 

Antwort

2

Das SocketIoClientDotNet 0.9.13 NuGet Paket hat zwei tragbare Baugruppen:

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

Diese Karte nicht an jede bekannte Portable Klassenbibliothek (PCL) Profil so NuGet werden Sie nicht zulassen, dass es in einem tragbaren Klassenbibliothek installieren Projekt.

Die neueste Betaversion 1.0.2-beta1 von SocketIoClientDotNet enthält keine PCL-Baugruppen. Stattdessen verfügt es über eine .NET Standard 1.3-Assembly. Leider kann man das auch nicht in einem PCL-Projekt verwenden.

So finden Sie entweder ein anderes NuGet-Paket, das bietet, was Sie brauchen, und unterstützt auch PCL-Projekte, oder Sie müssen Ihr Projekt als .NET Standard-Projekt ändern, das mindestens auf .NET Standard 1.3 abzielt.

Verwandte Themen