From 3e2b243d6b4b79bebd0450a256281f2ebe7863b4 Mon Sep 17 00:00:00 2001 From: jeff377 Date: Wed, 30 Sep 2026 02:25:14 +0800 Subject: [PATCH 1/2] Upgrade to Polhem 1.1.0 Polhem 1.1.0 renames Polhem.Base to Polhem.Core, the package and its namespaces, so the Server's using directives follow. The package references move from 1.0.0 to 1.1.0; the 1.0.0 packages are unlisted. Three comments pointed at Polhem documents that have moved: the mobile trimming gotcha is now under maintainers/, and the expression rules are under docs/en/definitions/. The changed files match apps/Polhem.Northwind in polhem at v1.1.0. --- Define/FormSchema/Order.FormSchema.xml | 2 +- .../Polhem.Northwind.Android.csproj | 2 +- Polhem.Northwind.Server/BusinessObjects/OrderBO.cs | 4 ++-- .../BusinessObjects/OrderDataSet.cs | 4 ++-- Polhem.Northwind.Server/NorthwindBackend.cs | 2 +- Polhem.Northwind.Server/NorthwindSchemaSeeder.cs | 2 +- Polhem.Northwind.Server/Polhem.Northwind.Server.csproj | 10 +++++----- .../Repositories/OrderRepository.cs | 2 +- Polhem.Northwind.UI/Polhem.Northwind.UI.csproj | 2 +- Polhem.Northwind.iOS/Polhem.Northwind.iOS.csproj | 2 +- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Define/FormSchema/Order.FormSchema.xml b/Define/FormSchema/Order.FormSchema.xml index 7f3394e..8fd5c3e 100644 --- a/Define/FormSchema/Order.FormSchema.xml +++ b/Define/FormSchema/Order.FormSchema.xml @@ -69,7 +69,7 @@ - diff --git a/Polhem.Northwind.Server/BusinessObjects/OrderBO.cs b/Polhem.Northwind.Server/BusinessObjects/OrderBO.cs index 6c780cf..1149cbe 100644 --- a/Polhem.Northwind.Server/BusinessObjects/OrderBO.cs +++ b/Polhem.Northwind.Server/BusinessObjects/OrderBO.cs @@ -1,7 +1,7 @@ using System.Data; using System.Globalization; -using Polhem.Base; -using Polhem.Base.Exceptions; +using Polhem.Core; +using Polhem.Core.Exceptions; using Polhem.Business.Form; using Polhem.Definition; using Polhem.Northwind.Server.Repositories; diff --git a/Polhem.Northwind.Server/BusinessObjects/OrderDataSet.cs b/Polhem.Northwind.Server/BusinessObjects/OrderDataSet.cs index a5802d0..fa9d72f 100644 --- a/Polhem.Northwind.Server/BusinessObjects/OrderDataSet.cs +++ b/Polhem.Northwind.Server/BusinessObjects/OrderDataSet.cs @@ -1,6 +1,6 @@ using System.Data; -using Polhem.Base; -using Polhem.Base.Exceptions; +using Polhem.Core; +using Polhem.Core.Exceptions; namespace Polhem.Northwind.Server.BusinessObjects; diff --git a/Polhem.Northwind.Server/NorthwindBackend.cs b/Polhem.Northwind.Server/NorthwindBackend.cs index d4abe6e..0858045 100644 --- a/Polhem.Northwind.Server/NorthwindBackend.cs +++ b/Polhem.Northwind.Server/NorthwindBackend.cs @@ -1,6 +1,6 @@ using Polhem.Api.AspNetCore; using Polhem.Api.Core; -using Polhem.Base; +using Polhem.Core; using Polhem.Business; using Polhem.Db; using Polhem.Db.Manager; diff --git a/Polhem.Northwind.Server/NorthwindSchemaSeeder.cs b/Polhem.Northwind.Server/NorthwindSchemaSeeder.cs index ebd9645..1978336 100644 --- a/Polhem.Northwind.Server/NorthwindSchemaSeeder.cs +++ b/Polhem.Northwind.Server/NorthwindSchemaSeeder.cs @@ -1,7 +1,7 @@ using System.Data.Common; using System.Globalization; using System.Text.Json; -using Polhem.Base.Security; +using Polhem.Core.Security; using Polhem.Db; using Polhem.Db.Manager; using Polhem.Db.Providers; diff --git a/Polhem.Northwind.Server/Polhem.Northwind.Server.csproj b/Polhem.Northwind.Server/Polhem.Northwind.Server.csproj index 052c4b6..1606a03 100644 --- a/Polhem.Northwind.Server/Polhem.Northwind.Server.csproj +++ b/Polhem.Northwind.Server/Polhem.Northwind.Server.csproj @@ -29,11 +29,11 @@ - - - - - + + + + + diff --git a/Polhem.Northwind.Server/Repositories/OrderRepository.cs b/Polhem.Northwind.Server/Repositories/OrderRepository.cs index 7e80ddf..eec9bcf 100644 --- a/Polhem.Northwind.Server/Repositories/OrderRepository.cs +++ b/Polhem.Northwind.Server/Repositories/OrderRepository.cs @@ -1,4 +1,4 @@ -using Polhem.Base; +using Polhem.Core; using Polhem.Db; using Polhem.Repository; using Polhem.Repository.Form; diff --git a/Polhem.Northwind.UI/Polhem.Northwind.UI.csproj b/Polhem.Northwind.UI/Polhem.Northwind.UI.csproj index 35cb2a8..e54b7ad 100644 --- a/Polhem.Northwind.UI/Polhem.Northwind.UI.csproj +++ b/Polhem.Northwind.UI/Polhem.Northwind.UI.csproj @@ -17,7 +17,7 @@ - + diff --git a/Polhem.Northwind.iOS/Polhem.Northwind.iOS.csproj b/Polhem.Northwind.iOS/Polhem.Northwind.iOS.csproj index e54637e..ea3ccf7 100644 --- a/Polhem.Northwind.iOS/Polhem.Northwind.iOS.csproj +++ b/Polhem.Northwind.iOS/Polhem.Northwind.iOS.csproj @@ -15,7 +15,7 @@ serialization (XmlSerializer for FormSchema, System.Text.Json, MessagePack) emits IL2026 / IL2104 trim warnings that are expected here. The head keeps the SDK's default partial trim, the only trim mode Polhem supports; the reasons and the warning counts are in - docs/repo-ops/gotchas/mobile-trim-aot.md of the Polhem repository. + maintainers/gotchas/mobile-trim-aot.md of the Polhem repository. --> From 8f92a5df3971135f23fc76660f114195e9acca8e Mon Sep 17 00:00:00 2001 From: jeff377 Date: Wed, 30 Sep 2026 02:34:07 +0800 Subject: [PATCH 2/2] Pin the iOS workload set to 10.0.401 Workload set 10.0.401.1, published on 2026-09-29, makes the iOS SDK require Xcode 27.0, and macos-latest has no Xcode 27 yet, so the iOS job failed before building. 10.0.401 requires Xcode 26.6, which the runner has; it is what the job installed when main last passed on 2026-09-28. The comment says how to tell when the pin can be removed. --- .github/workflows/build-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-ci.yml b/.github/workflows/build-ci.yml index 8de4f26..ac975d8 100644 --- a/.github/workflows/build-ci.yml +++ b/.github/workflows/build-ci.yml @@ -153,8 +153,12 @@ jobs: with: dotnet-version: 10.0.x + # HACK: the workload set is pinned because the iOS workload can move ahead of the runner image. + # Workload set 10.0.401.1 (2026-09-29) requires Xcode 27.0, which macos-latest does not have yet; + # 10.0.401 requires Xcode 26.6, which it does. To check whether the pin can go, run this job once + # without `--version`: the next step prints the Xcode the SDK requires and the ones installed. - name: Install iOS workload - run: dotnet workload install ios + run: dotnet workload install ios --version 10.0.401 - name: Restore run: dotnet restore Polhem.Northwind.iOS/Polhem.Northwind.iOS.csproj