ServiceStack 网站有 Windows (Nuget) 的构建/安装说明。有很多帖子提到了基于单声道的 ServiceStack,但从来没有任何关于如何在 Centos 上构建的说明。我在 Windows 上下载并构建了 ServiceStack,并试图将文件带到 Centos。到目前为止,这不适用于我与 mono-fastcgi 的集成。我在浏览器中遇到错误:例如“解析器错误消息:找不到类型 ServiceStack.Examples.Host.Web.Global”。这个特定的错误并不是我真正的问题,除非它能让我更进一步地安装有效的 ServiceStack。真正的问题是在 Centos 上安装和构建 ServiceStack 的最佳方式是什么?(让 Nuget 在 Centos 上工作并不是一个解决方案……至少我无法让 Nuget 构建)。
在与 Scott 讨论以下列出的步骤后,nuget.exe 命令行包管理器收到以下错误:
[root@buffer1 nuget]# /usr/local/bin/mono nuget.exe install ServiceStack -Verbosity detailed -ConfigFile /root/nuget/NuGet.config
WARNING: Invalid certificate received from server. Error code: 0xffffffff800b010a
System.InvalidOperationException: Unable to find package 'ServiceStack'.
at NuGet.PackageRepositoryHelper.ResolvePackage (IPackageRepository sourceRepository, IPackageRepository localRepository, IPackageConstraintProvider constraintProvider, System.String packageId, NuGet.SemanticVersion version, Boolean allowPrereleaseVersions) [0x00000] in <filename unknown>:0
at NuGet.PackageRepositoryHelper.ResolvePackage (IPackageRepository sourceRepository, IPackageRepository localRepository, System.String packageId, NuGet.SemanticVersion version, Boolean allowPrereleaseVersions) [0x00000] in <filename unknown>:0
at NuGet.PackageManager.InstallPackage (System.String packageId, NuGet.SemanticVersion version, Boolean ignoreDependencies, Boolean allowPrereleaseVersions) [0x00000] in <filename unknown>:0
at NuGet.Commands.InstallCommand.InstallPackage (IFileSystem fileSystem, System.String packageId, NuGet.SemanticVersion version) [0x00000] in <filename unknown>:0
at NuGet.Commands.InstallCommand.ExecuteCommand () [0x00000] in <filename unknown>:0
at NuGet.Commands.Command.Execute () [0x00000] in <filename unknown>:0
at NuGet.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
[root@buffer1 nuget]#
关于使用命令行 nuget 的任何想法?