Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
25 changes: 0 additions & 25 deletions .build/azure-templates/run-tests-on-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,31 +107,6 @@ steps:
displayName: 'Use .NET SDK ${{ parameters.dotNetSdkVersion }} (x86)'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net10.'), eq('${{ parameters.vsTestPlatform }}', 'x86'))

- task: UseDotNet@2
Comment thread
paulirwin marked this conversation as resolved.
Outdated
displayName: 'Use .NET SDK 9.0.308'
inputs:
packageType: 'sdk'
version: '9.0.308'
performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}'
condition: and(succeeded(), contains('${{ parameters.framework }}', 'net8.'))

# 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'))

- task: UseDotNet@2
displayName: 'Use .NET SDK 8.0.404'
inputs:
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
<PublishDir Condition="'$(AlternatePublishRootDirectory)' != ''">$(AlternatePublishRootDirectory)/$(TargetFramework)/$(MSBuildProjectName)/</PublishDir>
</PropertyGroup>

<!-- Features in .NET 9.x only -->
<PropertyGroup Condition=" $(TargetFramework.StartsWith('net9.')) ">
<!-- Features in .NET 9.x+ only -->
<PropertyGroup Condition=" $(TargetFramework.StartsWith('net9.')) Or $(TargetFramework.StartsWith('net10.')) ">

<DefineConstants>$(DefineConstants);FEATURE_STREAM_READEXACTLY</DefineConstants>

Expand Down
4 changes: 2 additions & 2 deletions TestTargetFramework.props
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@

<!-- Test Client to DLL target works as follows:
Test Client | Target Under Test
net9.0 | net8.0
net10.0 | net10.0
net8.0 | net8.0
net48 | net462
net472 | netstandard2.0
-->

<TargetFrameworks Condition=" '$(TestFrameworks)' == 'true' ">net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(TestFrameworks)' == 'true' ">net10.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(TestFrameworks)' == 'true' AND $([MSBuild]::IsOsPlatform('Windows')) ">$(TargetFrameworks);net48;net472</TargetFrameworks>
Comment thread
NightOwl888 marked this conversation as resolved.
Outdated
<TargetFramework Condition=" '$(TargetFrameworks)' != '' "></TargetFramework>
</PropertyGroup>
Expand Down
69 changes: 0 additions & 69 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,15 +242,6 @@ stages:
configuration: '$(BuildConfiguration)'
platform: '$(BuildPlatform)'

- template: '.build/azure-templates/publish-test-binaries.yml'
parameters:
publishDirectory: $(PublishDirectory)
framework: 'net9.0'
binaryArtifactName: '$(BinaryArtifactName)'
testSettingsFilePath: '$(Build.ArtifactStagingDirectory)/$(TestSettingsFileName)'
configuration: '$(BuildConfiguration)'
platform: '$(BuildPlatform)'

- template: '.build/azure-templates/publish-test-binaries.yml'
parameters:
publishDirectory: $(PublishDirectory)
Expand Down Expand Up @@ -399,66 +390,6 @@ stages:
maximumAllowedFailures: $(maximumAllowedFailures)
dotNetSdkVersion: '$(DotNetSDKVersion)'

- job: Test_net9_0_x64
condition: and(succeeded(), ne(variables['RunTests'], 'false'))
strategy:
matrix:
Windows:
osName: 'Windows'
imageName: 'windows-latest'
maximumParallelJobs: 8
maximumAllowedFailures: 0 # Maximum allowed failures for a successful build
Linux:
osName: 'Linux'
imageName: 'ubuntu-latest'
maximumParallelJobs: 7
maximumAllowedFailures: 0 # Maximum allowed failures for a successful build
macOS:
osName: 'macOS'
imageName: 'macOS-latest'
maximumParallelJobs: 7
maximumAllowedFailures: 0 # Maximum allowed failures for a successful build
displayName: 'Test net9.0,x64 on'
pool:
vmImage: $(imageName)
steps:
- template: '.build/azure-templates/run-tests-on-os.yml'
parameters:
osName: $(osName)
framework: 'net9.0'
vsTestPlatform: 'x64'
testBinariesArtifactName: '$(TestBinariesArtifactName)'
nugetArtifactName: '$(NuGetArtifactName)'
testResultsArtifactName: '$(TestResultsArtifactName)'
maximumParallelJobs: $(maximumParallelJobs)
maximumAllowedFailures: $(maximumAllowedFailures)
dotNetSdkVersion: '$(DotNetSDKVersion)'

- job: Test_net9_0_x86 # Only run Nightly or if explicitly enabled with RunX86Tests
condition: and(succeeded(), ne(variables['RunTests'], 'false'), or(eq(variables['IsNightly'], 'true'), eq(variables['RunX86Tests'], 'true')))
strategy:
matrix:
Windows:
osName: 'Windows'
imageName: 'windows-latest'
maximumParallelJobs: 8
maximumAllowedFailures: 0 # Maximum allowed failures for a successful build
displayName: 'Test net9.0,x86 on'
pool:
vmImage: $(imageName)
steps:
- template: '.build/azure-templates/run-tests-on-os.yml'
parameters:
osName: $(osName)
framework: 'net9.0'
vsTestPlatform: 'x86'
testBinariesArtifactName: '$(TestBinariesArtifactName)'
nugetArtifactName: '$(NuGetArtifactName)'
testResultsArtifactName: '$(TestResultsArtifactName)'
maximumParallelJobs: $(maximumParallelJobs)
maximumAllowedFailures: $(maximumAllowedFailures)
dotNetSdkVersion: '$(DotNetSDKVersion)'

- job: Test_net8_0_x64
condition: and(succeeded(), ne(variables['RunTests'], 'false'))
strategy:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<PropertyGroup>
<!-- Allow specific target framework to flow in from TestTargetFrameworks.props -->
<!--suppress MsbuildTargetFrameworkTagInspection - even though this only has one target right now, we need to use the plural version for the line below -->
<TargetFrameworks Condition=" '$(TargetFramework)' == '' ">net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(TargetFramework)' == '' ">net10.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(TargetFramework)' == '' AND $([MSBuild]::IsOsPlatform('Windows')) ">$(TargetFrameworks);net48</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Tests.Analysis.OpenNLP</AssemblyTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<PropertyGroup>
<!-- Allow specific target framework to flow in from TestTargetFrameworks.props -->
<TargetFrameworks Condition=" '$(TargetFramework)' == '' ">net10.0;net9.0;net8.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(TargetFramework)' == '' ">net10.0;net8.0</TargetFrameworks>
<AssemblyTitle>Lucene.Net.Tests.Cli</AssemblyTitle>
</PropertyGroup>

Expand Down
Loading