简体   繁体   English

nuget package 管理器不提供旧版本的 package

[英]nuget package manager does not offer older versions of package

I inherited some old legacy code which I'm trying to build, but I'm missing some specific dlls.我继承了一些我正在尝试构建的旧遗留代码,但我缺少一些特定的 dll。 In particular, I need version 4.0.0.0 of System.ComponentModel.Composition , but the Nuget Package Manager options only go down to 4.5.0.特别是,我需要System.ComponentModel.Composition的 4.0.0.0 版本,但 Nuget Package 管理器选项只有 Z34D1F91FB2E514B8576FAB1A75A75A89A6BZ 到 FAB1A75A89A6BZ。 Why is this, and how can I get the version I need?为什么会这样,我怎样才能得到我需要的版本?

Here is the line specified by the Web.config file I inherited.这是我继承的 Web.config 文件指定的行。

<add assembly="System.Net.Http.WebRequest, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />

在此处输入图像描述

According to your description, you can refer to the following steps to find the dlls you need:根据您的描述,您可以参考以下步骤找到您需要的dll:

  1. Right-click on the References under your project in Solution Explorer.在解决方案资源管理器中右键单击项目下的引用。
  2. Choose Assemblies and search System.ComponentModel.Composition, System.Net.Http.WebRequest选择组件并搜索 System.ComponentModel.Composition、System.Net.Http.WebRequest 在此处输入图像描述 在此处输入图像描述
  3. Check them and add them to the project.检查它们并将它们添加到项目中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM