【问题标题】:SocketIoClientDotNet with Visual Studio for mac can't install带有 Visual Studio for mac 的 SocketIoClientDotNet 无法安装
【发布时间】:2018-02-04 16:09:39
【问题描述】:

我正在使用 Visual Studio for mac。 我试图在 nuget 上下载 SocketIoClientDotNet。 但是我安装包失败。

[我的规格] 适用于 Mac 的 Visual Studio 社区 2017 7.1 版(内部版本 1297) 运行: 单声道 5.2.0.215 (d15-3/da80840)(64 位) GTK+ 2.24.23(罗利主题)

包版本:502000215

NuGet 버전: 4.3.0.2418

.NET 核心 运行时:未安装 SDK:未安装 MSBuild SDK:/Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

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

苹果开发者工具 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.

【问题讨论】:

    标签: c# visual-studio xamarin socket.io nuget


    【解决方案1】:

    SocketIoClientDotNet 0.9.13 NuGet 包有两个可移植程序集:

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

    这些不映射到任何已知的可移植类库 (PCL) 配置文件,因此 NuGet 不允许您将其安装到可移植类库项目中。

    最新的 SocketIoClientDotNet beta 版本 1.0.2-beta1 没有 PCL 程序集。相反,它有一个 .NET Standard 1.3 程序集。不幸的是,您也不能在 PCL 项目中使用它。

    因此,要么您找到另一个 NuGet 包来提供您需要的内容并支持 PCL 项目,要么您必须将您的项目修改为至少面向 .NET Standard 1.3 的 .NET Standard 项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-11
      • 1970-01-01
      • 2021-06-03
      • 1970-01-01
      相关资源
      最近更新 更多