servicestack 编译错误很多-无法生成从GitHub下载的某些ServiceStack解决方案,servicestack,servicestack" /> servicestack 编译错误很多-无法生成从GitHub下载的某些ServiceStack解决方案,servicestack,servicestack" />

servicestack 编译错误很多-无法生成从GitHub下载的某些ServiceStack解决方案

servicestack 编译错误很多-无法生成从GitHub下载的某些ServiceStack解决方案,servicestack,servicestack,这很奇怪 刚刚从GitHub下载后,我在ServiceStack.Text中遇到了一个构建错误 if (endpointUrl.IsNullOrEmpty() || !endpointUrl.StartsWith("http")) return null; Error 1 No overload for method 'IsNullOrEmpty' takes 0 arguments ServiceStack\src\ServiceStack.Common\Messaging\Cli

这很奇怪

刚刚从GitHub下载后,我在
ServiceStack.Text中遇到了一个构建错误

if (endpointUrl.IsNullOrEmpty() || !endpointUrl.StartsWith("http"))
 return null;

Error   1   No overload for method 'IsNullOrEmpty' takes 0 arguments
ServiceStack\src\ServiceStack.Common\Messaging\ClientFactory.cs 10  18
ServiceStack.Common
我还遇到了一系列其他构建错误:

错误35“int”不包含“Times”的定义,并且找不到接受类型为“int”的第一个参数的扩展方法“Times”(是否缺少using指令或程序集引用?)

下载后,我甚至尝试打开ServiceStack master\src\ServiceStack.sln并尝试构建,但它完全崩溃了:

我不知道这里发生了什么,不可能有这么多的构建错误,如果有的话?我不祈祷,但似乎是这样

这篇文章的目的,我所问的问题以及需要帮助澄清和解决的问题(mythz???)

我需要ServiceStack在以下方面的输入:

1)构建是否真的如此破碎?这是我的想象吗

2)GitHub上的分支结构到处都是,这意味着我到处都在寻找dup项目文件夹,我不知道这个ServiceStack分支是什么,因为在它的src文件夹中有大量的项目,不同的版本,并且没有ServiceStack.Text等项目。所以我不知道这里发生了什么。我想使用服务堆栈的基本核心,但在GitHub上到处都是重复的东西。我需要ServiceStack帮我把这一切清理干净

这是我的代码,所以你可以自己看看,它没有构建

  • 不会根据ServiceStack项目构建——这是我的解决方案,我只是尝试将我需要的ServiceStack项目与我自己使用ServiceStack的项目结合起来。我所做的只是下载这些单独的项目,然后将它们添加到我的解决方案中,并确保彼此之间的任何引用现在都是项目引用,不再是二进制的。我删除了二进制引用,并将它们读取为项目引用。例如ServiceStack.Common依赖于ServiceStack.Text,但它是通过二进制文件引用的,所以我删除了它,并将对ServiceStack.Text的引用作为项目引用,因为最终我们计划能够查看并使用基本堆栈代码。我上面发布的错误发生在ServiceStack相关项目的解决方案中

  • 不会生成-这是ServiceStack分支主控文件的下载(最初文件夹名为ServiceStack主控文件,我删除了-master)

更新:是的,我确认在GitHub站点上签入的是一个错误的构建(这里指的是ServiceStack分支主机)。我必须删除导致构建失败的未使用的using语句,其中一个是导致部分构建失败的dup-using语句。我对此感到惊讶…这些东西应该构建,人们应该签入成功构建的代码!常见的是的,mythz,任何试图使用您的API的开发人员都会因为一直有这么多构建错误而感到愤怒,我甚至无法启动我们的原型,因为这不是唯一一个无法构建的解决方案。首先,我们有所有的例子解决方案打破和现在的核心。如果可以的话,我愿意修复这些问题,但我真的不敢相信,因为这些签入的构建都失败了,所以尝试使用这个API真是太难了

  • 将建立因为它是Nuget down,所以ServiceStack通过lib文件夹中的二进制引用引用其他层,所以这个构建…可能是在这里构建的,因为有人在所有核心项目中都有一个工作的构建集,但是站点上要下载的内容不是同一版本,当您尝试将它们用作项目引用(源代码)时,它们会被破坏??这只是我的结论,因为只有当您使用对lib文件夹的二进制引用时,它才会生成。我们希望源代码而不是二进制文件在我们的解决方案中工作,所以这对我来说是一堵砖墙

看起来就像今天早些时候我下载了所有堆栈分支时,贡献者检查了损坏的构建。太棒了

我今天早上刚收到最新消息,看来人们一定已经修复了构建,并为各种核心项目检查了一些内容。现在它建立起来了

向mythz提出建议,立即将CI落实到位。不要等待v4。这让我花了一天的时间尝试各种各样的东西来构建这些东西,问题出现在几个项目中。这不应该发生,请安装CI。现在是凌晨2点,任何使用这个项目的人都不应该处理它


我将作出贡献,但首先我必须得到一个完整的建设工作!不太高兴,因为没有开发人员会浪费一整天的时间来构建ServiceStack。

现在master上发生了很多重大变化-它将在一段时间内不稳定

我建议您从v3 fixes标签中进行分支,或者从nuget中提取引用。

@CoffeeAddict

昨天,mythz在您之前的文章中回答了这些问题

“@CoffeeAddict正如我之前所说,ServiceStack正在进行重大的重新分解,并掌握alpha,而不是供公众使用。尽管一切都是为我构建的,测试仍然通过CI,但它在beta版之前通常是不稳定的。您可能将v3与v4 DLL混合在一起,它们在技术上不兼容。NuGet上的版本脱离了每个项目的v3分支,如果您想从src构建,就应该签出它。任何贡献都应仅针对v3修复程序-有关更多信息,请参阅贡献文档“9小时前的神话”

发现这么多让我抓狂的调整和改变 (在*.cs中搜索“名称空间等距丢失”
To compile v3: 
Would someone with true knowledge post PROPER instructions on compiling v4 or v3? I had no luck with the build.bat files for v3 or v4, and opening solutions will not compile for most. 

git clone servicestack, servicestack.text, redis, ormlite

make a new directory and copy from under src so you have these:

ServiceStack
ServiceStack.Client
ServiceStack.Common
ServiceStack.Interfaces
ServiceStack.OrmLite
ServiceStack.Redis
ServiceStack.Server
ServiceStack.Text

open csproj for ServiceStack.Interfaces ... right click properties, go to the signing tab, click the combo, new, type in your own signing pfx, I used servicestackInterfaces.pfx (doesn't matter) and make up a password.
Compiles fine, since it has not much referenced.

saved solution as ServiceStackV3 in folder C:\2015\SSv3compile

add csproj ServiceStack.Text, set signature, compiles ok

add csproj ServiceStack.Common, set signature, remove references, add references using solution for interface, text, compiles ok

add csproj ServiceStack.Client, set signature, remove references, add references  using solution for interface, text, compiles ok

add csproj ServiceStack, set signature, remove references, add references  using solution for client, common, interface, text, compiles ok

add csproj ServiceStack.OrmLite, set signature, remove references, add references  using solution for common, interface, text, compiles ok

add csproj ServiceStack.Redis, set signature, remove references, add references  using solution for common, interface, text, compiles ok

add csproj ServiceStack.ServiceStack.Server, set signature, remove references, add references  using solution for Servicestack, ServiceStack.Client, ServiceStack.Common, ServiceStack.Interface, ServiceStack.Text, ServiceStack.Ormlite, ServiceStack.Redis

compiles ok

have some more trouble compiling the tests...
looks like there is some code leakage from v4...   

after getting my head around v3, not sure I want to buy v4 - I will probably buy it in the future, I expect, and hope someday I can just clone and compile from the solution