如何在Linux上安装特定版本的nuget(2.12)?

时间:2018-03-17 19:30:00

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

有一个开放的c#项目需要nuget 2.12来编译它。 问题是来自debian存储库的nuget包只提供2.8.7

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

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

1 个答案:

答案 0 :(得分:2)

首先删除旧的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