Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8183a9b
Remove netstandard2.1 target and test support via net6.0, #1040
paulirwin Sep 29, 2025
763d4fc
Add net10.0 target
paulirwin Nov 13, 2025
a7e632c
Fix merge issue
paulirwin Nov 22, 2025
f4acd1f
Regenerate github workflows; test OpenNLP on net10
paulirwin Nov 22, 2025
3eeac22
More C# 14 field keyword changes
paulirwin Nov 22, 2025
261d795
.NET 10 build support in Azure DevOps
paulirwin Nov 22, 2025
8ec7786
Remove net9.0 tests for lucene-cli
paulirwin Nov 22, 2025
93549cb
Add back net9.0
paulirwin Nov 22, 2025
4a01e61
Remove net9.0 from lucene-cli
paulirwin Nov 24, 2025
56aad98
Conditionally set IsPublishable
paulirwin Nov 24, 2025
67c22bc
Regenerate github workflows
paulirwin Nov 24, 2025
9bb1c29
Remove net9.0 tests
paulirwin Nov 24, 2025
807149c
PR feedback
paulirwin Dec 5, 2025
59977e2
Add .NET 9 tests to ADO
paulirwin Dec 5, 2025
d6ab214
Upgrade Antlr4BuildTasks to 12.11.0
paulirwin Dec 5, 2025
dfe7f0e
Fix net9.0 test build
paulirwin Dec 5, 2025
f507aab
Revert SetTargetFramework change
paulirwin Dec 5, 2025
00d3e3e
Add net9.0 tests to CLI and OpenNLP test projects
paulirwin Dec 16, 2025
c5037a5
Directory.Build.props: Added section to compare Visual Studio version…
NightOwl888 Jan 1, 2026
27783c6
SWEEP: Added legacy support for Visual Studio 2022, excluding net10.0…
NightOwl888 Jan 1, 2026
f9d4831
publish-test-results-for-test-projects.yml: Upload test results for n…
NightOwl888 Jan 1, 2026
0f8e5c9
publish-test-results-for-test-projects.yml: Upload test results for n…
NightOwl888 Jan 2, 2026
daa19d8
.build/runbuild.ps1 + github/workflows/Generate-TestWorkflows.ps1 + D…
NightOwl888 Jan 2, 2026
a4605a0
.github/workflows/Generate-TestWorkflows.ps1: Generate workflow files…
NightOwl888 Jan 2, 2026
6d8d88c
Regenerated GitHub test workflows
NightOwl888 Jan 2, 2026
0e9641e
Fix comment
paulirwin Jan 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .build/azure-templates/run-tests-on-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ steps:
& $installScriptPath -Version $sdkVersion -Architecture $architecture -InstallDir $installPath
Write-Host "##vso[task.setvariable variable=DOTNET_ROOT_X86;]$installPath"
displayName: 'Use .NET SDK ${{ parameters.dotNetSdkVersion }} (x86)'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net9.'), eq('${{ parameters.vsTestPlatform }}', 'x86'))
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net10.'), eq('${{ parameters.vsTestPlatform }}', 'x86'))

- task: UseDotNet@2
displayName: 'Use .NET SDK 8.0.404'
Expand All @@ -132,6 +132,31 @@ steps:
displayName: 'Use .NET SDK 8.0.404 (x86)'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net8.'), eq('${{ parameters.vsTestPlatform }}', 'x86'))

- task: UseDotNet@2
displayName: 'Use .NET SDK 9.0.308'
inputs:
packageType: 'sdk'
version: '9.0.308'
performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net9.'))

# Hack: .NET 8+ no longer installs the x86 bits and they must be installed separately. However, it is not
# trivial to get it into the path and to get it to pass the minimum SDK version check in runbuild.ps1.
# So, we install it afterward and set the environment variable so the above SDK can delegate to it.
# This code only works on Windows.
- pwsh: |
$sdkVersion = '9.0.308'
$architecture = '${{ parameters.vsTestPlatform }}'
$installScriptPath = "${env:AGENT_TEMPDIRECTORY}/dotnet-install.ps1"
$installScriptUrl = "https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest $installScriptUrl -OutFile $installScriptPath -TimeoutSec 60
$installPath = "${env:ProgramFiles(x86)}/dotnet"
& $installScriptPath -Version $sdkVersion -Architecture $architecture -InstallDir $installPath
Write-Host "##vso[task.setvariable variable=DOTNET_ROOT_X86;]$installPath"
displayName: 'Use .NET SDK 9.0.308 (x86)'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net9.'), eq('${{ parameters.vsTestPlatform }}', 'x86'))


#- template: 'show-all-files.yml' # Uncomment for debugging
- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion .build/dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<PropertyGroup Label="NuGet Package Reference Versions">
<Antlr4CodeGeneratorPackageVersion>4.6.6</Antlr4CodeGeneratorPackageVersion>
<Antlr4RuntimeStandardPackageVersion>4.13.1</Antlr4RuntimeStandardPackageVersion>
<Antlr4BuildTasksPackageVersion>12.8.0</Antlr4BuildTasksPackageVersion>
<Antlr4BuildTasksPackageVersion>12.11.0</Antlr4BuildTasksPackageVersion>
<!-- LUCENENET TODO: When ICU4N is released to production,
be sure to lock down the version range below. The resource
files in Lucene.Net.ICU are not compatible with any other
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/Generate-TestWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

.PARAMETER TestFrameworks
A string array of Dotnet target framework monikers to run the tests on. The default is
@('net9.0','net8.0','net6.0','net472','net48').
@('net10.0','net8.0','net472','net48').

.PARAMETER OperatingSystems
A string array of Github Actions operating system monikers to run the tests on.
Expand All @@ -51,9 +51,9 @@
.PARAMETER Configurations
A string array of build configurations to run the tests on. The default is @('Release').

.PARAMETER DotNet9SDKVersion
The SDK version of .NET 9.x to install on the build agent to be used for building and
testing. This SDK is always installed on the build agent. The default is 9.0.x.
.PARAMETER DotNet10SDKVersion
The SDK version of .NET 10.x to install on the build agent to be used for building and
testing. This SDK is always installed on the build agent. The default is 10.0.x.

.PARAMETER DotNet8SDKVersion
The SDK version of .NET 8.x to install on the build agent to be used for building and
Expand All @@ -65,15 +65,15 @@ param(

[string]$RepoRoot = (Split-Path (Split-Path $PSScriptRoot)),

[string[]]$TestFrameworks = @('net9.0','net8.0','net472','net48'), # targets under test: net8.0, net8.0, netstandard2.0, net462
[string[]]$TestFrameworks = @('net10.0', 'net8.0', 'net472', 'net48'), # targets under test: net10.0, net8.0, netstandard2.0, net462

[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'),

[string[]]$TestPlatforms = @('x64'),

[string[]]$Configurations = @('Release'),

[string]$DotNet9SDKVersion = '9.0.x',
[string]$DotNet10SDKVersion = '10.0.x',

[string]$DotNet8SDKVersion = '8.0.x'
)
Expand Down Expand Up @@ -155,7 +155,7 @@ function Write-TestWorkflow(
[string[]]$TestFrameworks = @('net6.0', 'net48'),
[string[]]$TestPlatforms = @('x64'),
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'),
[string]$DotNet9SDKVersion = $DotNet9SDKVersion,
[string]$DotNet10SDKVersion = $DotNet10SDKVersion,
[string]$DotNet8SDKVersion = $DotNet8SDKVersion) {

$dependencies = New-Object System.Collections.Generic.HashSet[string]
Expand Down Expand Up @@ -280,10 +280,10 @@ jobs:
dotnet-version: '$DotNet8SDKVersion'
if: `${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '$DotNet9SDKVersion'
dotnet-version: '$DotNet10SDKVersion'
Comment thread
paulirwin marked this conversation as resolved.

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-AllProjects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -102,13 +102,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -86,13 +86,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -83,13 +83,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -83,13 +83,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48]
framework: [net10.0, net8.0, net48]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -86,13 +86,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -80,13 +80,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ on:
- 'src/Lucene.Net.Tests.Analysis.SmartCn/Directory.Build.*'
- 'src/Directory.Build.*'
- 'Directory.Build.*'
- 'src/Lucene.Net.Tests.Analysis.SmartCn/**/*.zip'

# Dependencies
- 'src/Lucene.Net/**/*'
Expand All @@ -55,7 +56,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -84,13 +85,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -81,13 +81,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -93,13 +93,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/Lucene-Net-Tests-Classification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
framework: [net9.0, net8.0, net48, net472]
framework: [net10.0, net8.0, net48, net472]
platform: [x64]
configuration: [Release]
exclude:
Expand Down Expand Up @@ -81,13 +81,13 @@ jobs:
- name: Setup .NET 8 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '8.0.415'
dotnet-version: '8.0.x'
if: ${{ startswith(matrix.framework, 'net8.') }}

- name: Setup .NET 9 SDK
- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.306'
dotnet-version: '10.0.x'

- name: Cache NuGet Packages
uses: actions/cache@v4
Expand Down
Loading
Loading