首页 > 解决方案 > NuGet 包管理器安装系统 dll

问题描述

我已经使用 NuGet 包管理器安装了第 3 方 .Net 库https://github.com/Quobject/SocketIoClientDotNet ,如下所示:

Install-Package SocketIoClientDotNet

我注意到这已经导入了几个自定义 dll 以及许多 .NET dll,例如:

  System.Collections.Immutable
  System.Collections.Specialized
  System.Linq
  System.Net.NameResolution
  System.Net.Security
  System.Net.Sockets
  System.Runtime.Extensions
  System.Runtime.InteropServices
  System.Security.Cryptography.Algorithms
  System.Security.Cryptography.Encoding
  System.Security.Cryptography.Primitives
  System.Security.Cryptography.X509Certificates
  System.Text.RegularExpressions
  System.Threading
  System.Threading.Timer

我看到这些 dll 都已导入到我的解决方案目录中名为“packages”的文件夹中。

我不想在我的安装程序中包含所有这些文件,所以我在想,因为这些是系统 .NET dll,我可以不简单地自己手动添加它们(右键单击 - >添加引用)并忘记它们被拉通过包管理器?

但是当我尝试使用 Visual Studios 的“添加引用”添加它们时,我在 Assemblies-Framework 或 Assemblies-Extensions中看不到很多。

标签: visual-studio-2017nuget-packageadd-references-dialog

解决方案


推荐阅读