問題描述
Servicestack nuget 版本控制 (Servicestack nuget versioning)
不到 3 個月前,我們開始使用 servicestack v4 構建不同的項目。
我們在 4.0.52 版本安裝了不同的 servicestack 包(servicestack.Common、servicestack.Interfaces、servicestack.Client 等)
由於一些安裝/更新,我們只升級了4.0.54 的 servicestack.Interfaces,這導致了這個錯誤:
方法 'PostFilesWithRequest' in type 'ServiceStack.JsonServiceClient' from assembly 'ServiceStack.Client, Version=4.0.52.0, Culture=中性,PublicKeyToken=null' 沒有實現。
將所有服務堆棧包升級到4.0.54後,它解決了錯誤(在新版本的IRestClient中他們添加了新定義)。
我的問題是:
- servicestack 如何處理他們發布的版本控制?
- 我們是否必須在每次發布新版本時升級所有 servicestack 包?
我認為他們使用語義版本控制,但似乎並非如此(a補丁應該是向後兼容的)
我知道我的問題聽起來更像是抱怨,但我很確定我不是唯一一個遇到這個問題的人:
無法加載類型'ServiceStack.IUrlFilter' 來自程序集 'ServiceStack.Interfaces...'
ServiceStack official NuGet packages are deployed in lock‑step where all of ServiceStack's 60 NuGet packages are released at the same time with the same version. Every release has the potential for a non‑backwards compatible change in any one of modified ServiceStack's packages so they should all be upgraded at the same time.