centos安裝nuget


1 官方文檔 dotnet 可代替nuget.exe

https://docs.microsoft.com/zh-cn/nuget/install-nuget-client-tools

低版本的nuget 缺少一些參數

 

2 安裝mono

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

有了mono 可以運行nuget.exe 可以把windows上的nuget.exe拷貝上去 直接運行

安裝的版本可能不是最新

下載源碼 https://download.mono-project.com/sources/mono/

解壓 tar -xvf mono-6.6.0.161.tar.xz

進入解壓目錄 執行 ./autogen.sh && make -j8 && make install

 

 

 

3 解決mono 訪問https的問題

https://github.com/duplicati/duplicati/wiki/SSL-TLS-support-in-Mono

sudo cert-sync /etc/pki/tls/certs/ca-bundle.crt

 

4 nuget 從配置文件增加包源

nuget sources  -configfile /projects/nuget/config/NuGet.Config 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM