This is an automated email from the ASF dual-hosted git repository.
CurtHagenlocher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git
The following commit(s) were added to refs/heads/main by this push:
new 4062396adc feat(csharp): version core packages as 1.0, separately from
drivers (#4923)
4062396adc is described below
commit 4062396adcaa2142657a7a38941a454a701285c7
Author: Curt Hagenlocher <[email protected]>
AuthorDate: Tue Oct 20 03:22:10 2026 -0700
feat(csharp): version core packages as 1.0, separately from drivers (#4923)
For the upcoming release, the core C# packages ship as 1.0 while the
drivers stay at 0.x.
**1.0.0:** Apache.Arrow.Adbc, Apache.Arrow.Adbc.Client,
Apache.Arrow.Adbc.Telemetry.Traces.Exporters,
Apache.Arrow.Adbc.Telemetry.Traces.Listeners, Apache.Arrow.Adbc.Testing
**0.25.0:** all drivers, including
Apache.Arrow.Adbc.Drivers.Interop.FlightSql
Changes:
- `csharp/Directory.Build.props`: new `AdbcCoreVersionPrefix` (1.0.0),
plus `AdbcCoreVersion`, which includes the version suffix.
`VersionPrefix` is still the default and is what the drivers use.
- The core projects opt in with
`<VersionPrefix>$(AdbcCoreVersionPrefix)</VersionPrefix>`.
- The smoke tests now reference Apache.Arrow.Adbc.Client at
`$(AdbcCoreVersion)`.
- Release tooling: new `VERSION_CSHARP_CORE` in `versions.env`.
`utils-prepare.sh` bumps it, `post-07-csharp.sh` pushes the core
packages under it, and the vote email, website post, verification script
and changelog list both C# versions.
Verified:
- `dotnet pack` produces the versions above, and driver packages depend
on `Apache.Arrow.Adbc 1.0.0-SNAPSHOT`.
- `--version-suffix` and an empty suffix apply correctly to both groups.
- The release-prep `sed` replacements update all three properties.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
csharp/Directory.Build.props | 12 ++++++++++++
csharp/Directory.Packages.props | 2 +-
csharp/src/Apache.Arrow.Adbc/Apache.Arrow.Adbc.csproj | 1 +
csharp/src/Client/Apache.Arrow.Adbc.Client.csproj | 1 +
.../Apache.Arrow.Adbc.Telemetry.Traces.Exporters.csproj | 1 +
.../Apache.Arrow.Adbc.Telemetry.Traces.Listeners.csproj | 1 +
.../Apache.Arrow.Adbc.Testing.csproj | 1 +
csharp/test/SmokeTests/build.props | 2 +-
dev/adbc_dev/changelog.py | 3 ++-
dev/release/06-binary-verify.sh | 2 +-
dev/release/post-07-csharp.sh | 14 +++++++-------
dev/release/post-13-website.sh | 2 +-
dev/release/utils-prepare.sh | 8 +++++++-
dev/release/verify-release-candidate.sh | 2 +-
dev/release/versions.env | 3 +++
15 files changed, 41 insertions(+), 14 deletions(-)
diff --git a/csharp/Directory.Build.props b/csharp/Directory.Build.props
index 65a06c711b..cddd13410e 100644
--- a/csharp/Directory.Build.props
+++ b/csharp/Directory.Build.props
@@ -33,6 +33,18 @@
<VersionSuffix>SNAPSHOT</VersionSuffix>
</PropertyGroup>
+ <!--
+ The core packages (Apache.Arrow.Adbc, Apache.Arrow.Adbc.Client,
+ Apache.Arrow.Adbc.Telemetry.Traces.* and Apache.Arrow.Adbc.Testing) are
+ versioned separately from the drivers.
+ Those projects opt in by setting VersionPrefix to $(AdbcCoreVersionPrefix).
+ -->
+ <PropertyGroup>
+ <AdbcCoreVersionPrefix>1.0.0</AdbcCoreVersionPrefix>
+ <AdbcCoreVersion>$(AdbcCoreVersionPrefix)</AdbcCoreVersion>
+ <AdbcCoreVersion Condition="'$(VersionSuffix)' !=
''">$(AdbcCoreVersionPrefix)-$(VersionSuffix)</AdbcCoreVersion>
+ </PropertyGroup>
+
<PropertyGroup>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<LangVersion>latest</LangVersion>
diff --git a/csharp/Directory.Packages.props b/csharp/Directory.Packages.props
index f44629b6d1..e11402a17f 100644
--- a/csharp/Directory.Packages.props
+++ b/csharp/Directory.Packages.props
@@ -28,7 +28,7 @@
<ItemGroup>
<PackageVersion Include="Apache.Arrow" Version="23.0.0" />
<PackageVersion Include="Apache.Arrow.Operations" Version="23.0.0" />
- <PackageVersion Include="Apache.Arrow.Adbc.Client" Version="[$(Version)]"
/>
+ <PackageVersion Include="Apache.Arrow.Adbc.Client"
Version="[$(AdbcCoreVersion)]" />
<PackageVersion Include="Apache.Arrow.Adbc.Drivers.BigQuery"
Version="[$(Version)]" />
<PackageVersion Include="Apache.Arrow.Adbc.Drivers.Interop.FlightSql"
Version="[$(Version)]" />
<PackageVersion Include="Apache.Arrow.Flight" Version="22.1.0" />
diff --git a/csharp/src/Apache.Arrow.Adbc/Apache.Arrow.Adbc.csproj
b/csharp/src/Apache.Arrow.Adbc/Apache.Arrow.Adbc.csproj
index 5792b1b912..11ff84ec7b 100644
--- a/csharp/src/Apache.Arrow.Adbc/Apache.Arrow.Adbc.csproj
+++ b/csharp/src/Apache.Arrow.Adbc/Apache.Arrow.Adbc.csproj
@@ -4,6 +4,7 @@
<TargetFrameworks>netstandard2.0;net8.0;net10.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PackageReadmeFile>readme.md</PackageReadmeFile>
+ <VersionPrefix>$(AdbcCoreVersionPrefix)</VersionPrefix>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net10.0'">
diff --git a/csharp/src/Client/Apache.Arrow.Adbc.Client.csproj
b/csharp/src/Client/Apache.Arrow.Adbc.Client.csproj
index 2aea01fa7e..b03c892921 100644
--- a/csharp/src/Client/Apache.Arrow.Adbc.Client.csproj
+++ b/csharp/src/Client/Apache.Arrow.Adbc.Client.csproj
@@ -2,6 +2,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
<PackageReadmeFile>readme.md</PackageReadmeFile>
+ <VersionPrefix>$(AdbcCoreVersionPrefix)</VersionPrefix>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Apache.Arrow.Adbc\Apache.Arrow.Adbc.csproj"
/>
diff --git
a/csharp/src/Telemetry/Traces/Exporters/Apache.Arrow.Adbc.Telemetry.Traces.Exporters.csproj
b/csharp/src/Telemetry/Traces/Exporters/Apache.Arrow.Adbc.Telemetry.Traces.Exporters.csproj
index 63564200bd..11a1b560a4 100644
---
a/csharp/src/Telemetry/Traces/Exporters/Apache.Arrow.Adbc.Telemetry.Traces.Exporters.csproj
+++
b/csharp/src/Telemetry/Traces/Exporters/Apache.Arrow.Adbc.Telemetry.Traces.Exporters.csproj
@@ -4,6 +4,7 @@
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
<Nullable>enable</Nullable>
<PackageReadmeFile>readme.md</PackageReadmeFile>
+ <VersionPrefix>$(AdbcCoreVersionPrefix)</VersionPrefix>
</PropertyGroup>
<ItemGroup>
<Content Include="readme.md">
diff --git
a/csharp/src/Telemetry/Traces/Listeners/Apache.Arrow.Adbc.Telemetry.Traces.Listeners.csproj
b/csharp/src/Telemetry/Traces/Listeners/Apache.Arrow.Adbc.Telemetry.Traces.Listeners.csproj
index 34e77b48e0..9c233581aa 100644
---
a/csharp/src/Telemetry/Traces/Listeners/Apache.Arrow.Adbc.Telemetry.Traces.Listeners.csproj
+++
b/csharp/src/Telemetry/Traces/Listeners/Apache.Arrow.Adbc.Telemetry.Traces.Listeners.csproj
@@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net8.0;net10.0</TargetFrameworks>
<Nullable>enable</Nullable>
+ <VersionPrefix>$(AdbcCoreVersionPrefix)</VersionPrefix>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net10.0'">
diff --git
a/csharp/test/Apache.Arrow.Adbc.Tests/Apache.Arrow.Adbc.Testing.csproj
b/csharp/test/Apache.Arrow.Adbc.Tests/Apache.Arrow.Adbc.Testing.csproj
index 003b738b97..295fd4fe5b 100644
--- a/csharp/test/Apache.Arrow.Adbc.Tests/Apache.Arrow.Adbc.Testing.csproj
+++ b/csharp/test/Apache.Arrow.Adbc.Tests/Apache.Arrow.Adbc.Testing.csproj
@@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net8.0;net10.0;net472</TargetFrameworks>
<IsPackable>true</IsPackable>
+ <VersionPrefix>$(AdbcCoreVersionPrefix)</VersionPrefix>
<IsTestProject>true</IsTestProject>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ProcessArchitecture>$([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant())</ProcessArchitecture>
diff --git a/csharp/test/SmokeTests/build.props
b/csharp/test/SmokeTests/build.props
index 7d0e9d6106..30b9a06eba 100644
--- a/csharp/test/SmokeTests/build.props
+++ b/csharp/test/SmokeTests/build.props
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
- <ApacheArrowAdbcClientVersion>$(Version)</ApacheArrowAdbcClientVersion>
+
<ApacheArrowAdbcClientVersion>$(AdbcCoreVersion)</ApacheArrowAdbcClientVersion>
<ApacheArrowAdbcDriversBigQueryVersion>$(Version)</ApacheArrowAdbcDriversBigQueryVersion>
<ApacheArrowAdbcDriversInteropFlightSqlVersion>$(Version)</ApacheArrowAdbcDriversInteropFlightSqlVersion>
</PropertyGroup>
diff --git a/dev/adbc_dev/changelog.py b/dev/adbc_dev/changelog.py
index fec3b16c6a..b6c5665ade 100755
--- a/dev/adbc_dev/changelog.py
+++ b/dev/adbc_dev/changelog.py
@@ -86,7 +86,8 @@ def format_changelog(
"### Versions",
"",
f"- C/C++/GLib/Go/Python/Ruby: {release['VERSION_NATIVE']}",
- f"- C#: {release['VERSION_CSHARP']}",
+ f"- C#: {release['VERSION_CSHARP_CORE']} (core), "
+ f"{release['VERSION_CSHARP']} (drivers)",
f"- Java: {release['VERSION_JAVA']}",
f"- R: {release['VERSION_R']}",
f"- Rust: {release['VERSION_RUST']}",
diff --git a/dev/release/06-binary-verify.sh b/dev/release/06-binary-verify.sh
index 435a293474..60945c6388 100755
--- a/dev/release/06-binary-verify.sh
+++ b/dev/release/06-binary-verify.sh
@@ -81,7 +81,7 @@ I would like to propose the following release candidate
(RC${rc_number}) of Apac
The subcomponents are versioned independently:
- C/C++/GLib/Go/Python/Ruby: ${VERSION_NATIVE}
-- C#: ${VERSION_CSHARP}
+- C#: ${VERSION_CSHARP_CORE} (core), ${VERSION_CSHARP} (drivers)
- Java: ${VERSION_JAVA}
- R: ${VERSION_R}
- Rust: ${VERSION_RUST}
diff --git a/dev/release/post-07-csharp.sh b/dev/release/post-07-csharp.sh
index 93a0dd21a6..401e87e10e 100755
--- a/dev/release/post-07-csharp.sh
+++ b/dev/release/post-07-csharp.sh
@@ -42,7 +42,7 @@ main() {
local -r tmp=$(mktemp -d -t "arrow-post-csharp.XXXXX")
- header "Downloading C# packages for ${VERSION_CSHARP}"
+ header "Downloading C# packages for ${VERSION_CSHARP_CORE} (core) and
${VERSION_CSHARP} (drivers)"
gh release download \
--repo "${REPOSITORY}" \
@@ -52,12 +52,12 @@ main() {
--pattern "*.snupkg"
local base_names=()
- base_names+=(Apache.Arrow.Adbc.${VERSION_CSHARP})
- base_names+=(Apache.Arrow.Adbc.Client.${VERSION_CSHARP})
+ base_names+=(Apache.Arrow.Adbc.${VERSION_CSHARP_CORE})
+ base_names+=(Apache.Arrow.Adbc.Client.${VERSION_CSHARP_CORE})
base_names+=(Apache.Arrow.Adbc.Drivers.Interop.FlightSql.${VERSION_CSHARP})
- base_names+=(Apache.Arrow.Adbc.Telemetry.Traces.Exporters.${VERSION_CSHARP})
- base_names+=(Apache.Arrow.Adbc.Telemetry.Traces.Listeners.${VERSION_CSHARP})
- base_names+=(Apache.Arrow.Adbc.Testing.${VERSION_CSHARP})
+
base_names+=(Apache.Arrow.Adbc.Telemetry.Traces.Exporters.${VERSION_CSHARP_CORE})
+
base_names+=(Apache.Arrow.Adbc.Telemetry.Traces.Listeners.${VERSION_CSHARP_CORE})
+ base_names+=(Apache.Arrow.Adbc.Testing.${VERSION_CSHARP_CORE})
for base_name in "${base_names[@]}"; do
dotnet nuget push \
"${tmp}/${base_name}.nupkg" \
@@ -68,7 +68,7 @@ main() {
rm -rf "${tmp}"
echo "Success! The released NuGet package is available here:"
- echo " https://www.nuget.org/packages/Apache.Arrow.Adbc/${VERSION_CSHARP}"
+ echo "
https://www.nuget.org/packages/Apache.Arrow.Adbc/${VERSION_CSHARP_CORE}"
}
main "$@"
diff --git a/dev/release/post-13-website.sh b/dev/release/post-13-website.sh
index 670da98729..e19584dbfa 100755
--- a/dev/release/post-13-website.sh
+++ b/dev/release/post-13-website.sh
@@ -78,7 +78,7 @@ version ${spec_version}.
The subcomponents are versioned independently:
- C/C++/GLib/Go/Python/Ruby: ${VERSION_NATIVE}
-- C#: ${VERSION_CSHARP}
+- C#: ${VERSION_CSHARP_CORE} (core), ${VERSION_CSHARP} (drivers)
- Java: ${VERSION_JAVA}
- JavaScript: ${VERSION_JS}
- R: ${VERSION_R}
diff --git a/dev/release/utils-prepare.sh b/dev/release/utils-prepare.sh
index 3b211ee132..bfb64db108 100644
--- a/dev/release/utils-prepare.sh
+++ b/dev/release/utils-prepare.sh
@@ -23,6 +23,7 @@ update_versions() {
local conda_version="${VERSION_NATIVE}"
local csharp_version="${VERSION_CSHARP}"
+ local csharp_core_version="${VERSION_CSHARP_CORE}"
local js_version="${VERSION_JS}"
local linux_version="${RELEASE}"
local rust_version="${VERSION_CSHARP}"
@@ -63,7 +64,8 @@ update_versions() {
header "Updating versions for release ${RELEASE}"
echo "C: ${c_version}"
echo "Conda: ${conda_version}"
- echo "C#: ${csharp_version}"
+ echo "C# (core): ${csharp_core_version}"
+ echo "C# (drivers): ${csharp_version}"
echo "Docs: ${docs_version}"
echo "GLib/Ruby: ${glib_version}"
echo "Java: ${java_version}"
@@ -94,6 +96,10 @@ update_versions() {
-E
"s|<VersionPrefix>.+</VersionPrefix>|<VersionPrefix>${csharp_version}</VersionPrefix>|"
\
"${ADBC_DIR}/csharp/Directory.Build.props"
rm "${ADBC_DIR}/csharp/Directory.Build.props.bak"
+ sed -i.bak \
+ -E
"s|<AdbcCoreVersionPrefix>.+</AdbcCoreVersionPrefix>|<AdbcCoreVersionPrefix>${csharp_core_version}</AdbcCoreVersionPrefix>|"
\
+ "${ADBC_DIR}/csharp/Directory.Build.props"
+ rm "${ADBC_DIR}/csharp/Directory.Build.props.bak"
sed -i.bak \
-E
"s|<VersionSuffix>.+</VersionSuffix>|<VersionSuffix>${csharp_suffix}</VersionSuffix>|"
\
"${ADBC_DIR}/csharp/Directory.Build.props"
diff --git a/dev/release/verify-release-candidate.sh
b/dev/release/verify-release-candidate.sh
index ccdd8326eb..f2de999d06 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -725,7 +725,7 @@ ensure_source_directory() {
source "${ADBC_SOURCE_DIR}/dev/release/versions.env"
echo "Versions:"
echo "Release: ${RELEASE} (requested: ${VERSION})"
- echo "C#: ${VERSION_CSHARP}"
+ echo "C#: ${VERSION_CSHARP_CORE} (core), ${VERSION_CSHARP} (drivers)"
echo "Java: ${VERSION_JAVA}"
echo "C/C++/GLib/Go/Python/Ruby: ${VERSION_NATIVE}"
echo "R: ${VERSION_R}"
diff --git a/dev/release/versions.env b/dev/release/versions.env
index d4991043c9..1c918469bd 100644
--- a/dev/release/versions.env
+++ b/dev/release/versions.env
@@ -21,6 +21,9 @@ RELEASE="25"
PREVIOUS_RELEASE="24"
# Individual components will have a SemVer.
+# C# core packages (Apache.Arrow.Adbc, .Client, .Telemetry.Traces.*, .Testing);
+# the C# drivers use VERSION_CSHARP.
+VERSION_CSHARP_CORE="1.0.0"
VERSION_CSHARP="0.25.0"
VERSION_JAVA="0.25.0"
# Because C++/GLib/Go/Python/Ruby are effectively tied at the hip, they share