【问题标题】:How to install a specific version of nuget (2.12) on Linux?如何在 Linux 上安装特定版本的 nuget (2.12)?
【发布时间】:2018-08-26 17:18:15
【问题描述】:

有一个打开的 c#-project 需要 nuget 2.12 来编译它。 问题是来自 debian 存储库的 nuget 包仅提供 2.8.7

可以选择使用 sudo nuget update -self 独立更新 nuget,但它会安装 4.5.1 ,这也不兼容。

有没有办法在 Debian 9.4 上安装 nuget 2.12?

【问题讨论】:

  • 什么样的项目需要这么老的构建?您可能还应该转储该项目,因为它可能已过时。如果您确实需要 2.12,那么今天您只能自己从源代码构建它,github.com/NuGet/NuGet2/tree/2.12
  • 是否有重大变化使您的项目不再适用于更新的版本? NuGet 应该向后兼容

标签: c# linux debian .net-core nuget


【解决方案1】:

首先删除旧的 nuget 和 mono 安装

sudo apt-get remove --purge mono-devel nuget

试试这个:

https://www.mono-project.com/download/stable/#download-lin

然后安装nuget:

sudo apt-get install mono-devel nuget

【讨论】:

  • 这个答案没有清楚地描述意图是什么;你的意思是指定一个特定的仓库来提取包然后重新安装。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-04-11
  • 2018-11-21
  • 1970-01-01
  • 2017-05-14
  • 1970-01-01
相关资源
最近更新 更多