我試圖讓NuGet在單聲道2.10.9(Mac)上運行,但沒有運氣。如何在Mono 2.10.9上運行NuGet?
我想從的NuGet庫安裝南希:
mono --runtime=v4.0 /usr/local/bin/NuGet.exe install Nancy -Version 0.11.0
但是,最終與此錯誤消息:
Missing method System.Security.Cryptography.CryptoConfig::get_AllowOnlyFipsAlgorithms() in assembly /Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/mscorlib.dll, referenced in assembly /usr/local/bin/NuGet.exe
Method not found: 'System.Security.Cryptography.CryptoConfig.get_AllowOnlyFipsAlgorithms'.
我可以列出庫沒有問題。
mono --runtime=v4.0 /usr/local/bin/NuGet.exe list Nancy
我試圖將Microsoft.Build.dll添加到與NuGet.exe相同的路徑(我不記得在哪裏)。
我結束了這個錯誤:
Invalid type Microsoft.Build.Evaluation.Project for instance field NuGet.Common.MSBuildProjectSystem:<Project>k__BackingField
Could not load type 'NuGet.Common.MSBuildProjectSystem' from assembly 'NuGet, Version=2.0.30619.9000, Culture=neutral, PublicKeyToken=null'.
我如何能得到NuGet.exe在Mono(蘋果機)上運行有什麼建議?