我试图让 NuGet 在 Mono 2.10.9 (Mac) 上运行,但没有运气。
我想从 NuGet 存储库安装 Nancy:
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 (Mac) 上运行的任何建议?