diff --git a/.github/workflows/Generate-TestWorkflows.ps1 b/.github/workflows/Generate-TestWorkflows.ps1
index faafde8167..df44360a04 100644
--- a/.github/workflows/Generate-TestWorkflows.ps1
+++ b/.github/workflows/Generate-TestWorkflows.ps1
@@ -38,7 +38,7 @@
.PARAMETER TestFrameworks
A string array of Dotnet target framework monikers to run the tests on. The default is
- @('net5.0','netcoreapp2.1','net48').
+ @('net5.0','net461','net48').
.PARAMETER OperatingSystems
A string array of Github Actions operating system monikers to run the tests on.
@@ -59,18 +59,13 @@
The SDK version of .NET Core 3.x to install on the build agent to be used for building and
testing. This SDK is only installed on the build agent when targeting .NET Core 3.x.
The default is 3.1.412.
-
- .PARAMETER DotNetCore2SDKVersion
- The SDK version of .NET Core 2.x to install on the build agent to be used for building and
- testing. This SDK is only installed on the build agent when targeting .NET Core 2.x.
- The default is 2.1.817.
#>
param(
[string]$OutputDirectory = $PSScriptRoot,
[string]$RepoRoot = (Split-Path (Split-Path $PSScriptRoot)),
- [string[]]$TestFrameworks = @('net5.0','netcoreapp2.1','net48'),
+ [string[]]$TestFrameworks = @('net5.0','net461','net48'), # targets under test: netstanrd2.1, netstanard2.0, net45
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'),
@@ -80,9 +75,7 @@ param(
[string]$DotNet5SDKVersion = '5.0.400',
- [string]$DotNetCore3SDKVersion = '3.1.412',
-
- [string]$DotNetCore2SDKVersion = '2.1.817'
+ [string]$DotNetCore3SDKVersion = '3.1.412'
)
@@ -163,8 +156,7 @@ function Write-TestWorkflow(
[string[]]$TestPlatforms = @('x64'),
[string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'),
[string]$DotNet5SDKVersion = $DotNet5SDKVersion,
- [string]$DotNetCore3SDKVersion = $DotNetCore3SDKVersion,
- [string]$DotNetCore2SDKVersion = $DotNetCore2SDKVersion) {
+ [string]$DotNetCore3SDKVersion = $DotNetCore3SDKVersion) {
$dependencies = New-Object System.Collections.Generic.HashSet[string]
Get-ProjectDependencies $ProjectPath $RelativeRoot $dependencies
@@ -247,8 +239,12 @@ jobs:
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: '$projectRelativePath'
trx_file_name: 'TestResults.trx'
@@ -263,12 +259,6 @@ jobs:
dotnet-version: '$DotNetCore3SDKVersion'
if: `${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '$DotNetCore2SDKVersion'
- if: `${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
@@ -317,7 +307,7 @@ try {
Pop-Location
}
-#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net5.0','netcoreapp3.1') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion -DotNetCore2SDKVersion $DotNetCore2SDKVersion
+#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net5.0','netcoreapp3.1') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion
#Write-Host $TestProjects
@@ -325,9 +315,9 @@ foreach ($testProject in $TestProjects) {
$projectName = [System.IO.Path]::GetFileNameWithoutExtension($testProject)
[string[]]$frameworks = $TestFrameworks
- # Special case - CodeAnalysis only supports .NET Core 2.1 for testing
+ # Special case - CodeAnalysis only supports .NET 5.0 for testing
if ($projectName.Contains("Tests.CodeAnalysis")) {
- $frameworks = @('netcoreapp2.1')
+ $frameworks = @('net5.0')
}
# Special case - our CLI tool only supports .NET Core 3.1
@@ -341,5 +331,5 @@ foreach ($testProject in $TestProjects) {
}
#Write-Host "Project: $projectName"
- Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion -DotNetCore2SDKVersion $DotNetCore2SDKVersion
+ Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet5SDKVersion $DotNet5SDKVersion -DotNetCore3SDKVersion $DotNetCore3SDKVersion
}
\ No newline at end of file
diff --git a/.github/workflows/Lucene-Net-Tests-AllProjects.yml b/.github/workflows/Lucene-Net-Tests-AllProjects.yml
index 182bcc6fca..4bce2a044a 100644
--- a/.github/workflows/Lucene-Net-Tests-AllProjects.yml
+++ b/.github/workflows/Lucene-Net-Tests-AllProjects.yml
@@ -72,14 +72,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj'
trx_file_name: 'TestResults.trx'
@@ -94,12 +98,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml
index 0ab03f629c..206bf71e70 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml
@@ -56,14 +56,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj'
trx_file_name: 'TestResults.trx'
@@ -78,12 +82,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
index a7c395cbde..3e6504655f 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml
@@ -53,14 +53,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj'
trx_file_name: 'TestResults.trx'
@@ -75,12 +79,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
index 09c7f5beb1..2ff1bb5644 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml
@@ -53,14 +53,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Morfologik/Lucene.Net.Tests.Analysis.Morfologik.csproj'
trx_file_name: 'TestResults.trx'
@@ -75,12 +79,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
index 18ab605489..1f6210bb07 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml
@@ -62,8 +62,12 @@ jobs:
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj'
trx_file_name: 'TestResults.trx'
@@ -78,12 +82,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
index 12b8248a88..2fba3cf75a 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml
@@ -50,14 +50,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Phonetic/Lucene.Net.Tests.Analysis.Phonetic.csproj'
trx_file_name: 'TestResults.trx'
@@ -72,12 +76,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
index dd365ae641..1a447a32aa 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml
@@ -54,14 +54,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj'
trx_file_name: 'TestResults.trx'
@@ -76,12 +80,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
index a54884f031..a36c32b61d 100644
--- a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
+++ b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml
@@ -51,14 +51,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Analysis.Stempel/Lucene.Net.Tests.Analysis.Stempel.csproj'
trx_file_name: 'TestResults.trx'
@@ -73,12 +77,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Benchmark.yml b/.github/workflows/Lucene-Net-Tests-Benchmark.yml
index b487ebf698..783e4fa457 100644
--- a/.github/workflows/Lucene-Net-Tests-Benchmark.yml
+++ b/.github/workflows/Lucene-Net-Tests-Benchmark.yml
@@ -63,14 +63,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Benchmark/Lucene.Net.Tests.Benchmark.csproj'
trx_file_name: 'TestResults.trx'
@@ -85,12 +89,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Classification.yml b/.github/workflows/Lucene-Net-Tests-Classification.yml
index 866df95757..d2653ffa5d 100644
--- a/.github/workflows/Lucene-Net-Tests-Classification.yml
+++ b/.github/workflows/Lucene-Net-Tests-Classification.yml
@@ -51,14 +51,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Classification/Lucene.Net.Tests.Classification.csproj'
trx_file_name: 'TestResults.trx'
@@ -73,12 +77,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Cli.yml b/.github/workflows/Lucene-Net-Tests-Cli.yml
index 6fd32e869a..5b466f76b9 100644
--- a/.github/workflows/Lucene-Net-Tests-Cli.yml
+++ b/.github/workflows/Lucene-Net-Tests-Cli.yml
@@ -76,8 +76,12 @@ jobs:
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj'
trx_file_name: 'TestResults.trx'
@@ -92,12 +96,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml
index 28e9ed9eb5..1ff21a9ff4 100644
--- a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml
+++ b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml
@@ -49,14 +49,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [netcoreapp2.1]
+ framework: [net5.0]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/dotnet/Lucene.Net.Tests.CodeAnalysis/Lucene.Net.Tests.CodeAnalysis.csproj'
trx_file_name: 'TestResults.trx'
@@ -71,12 +75,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Codecs.yml b/.github/workflows/Lucene-Net-Tests-Codecs.yml
index 02a75a211b..742ea7080f 100644
--- a/.github/workflows/Lucene-Net-Tests-Codecs.yml
+++ b/.github/workflows/Lucene-Net-Tests-Codecs.yml
@@ -49,14 +49,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj'
trx_file_name: 'TestResults.trx'
@@ -71,12 +75,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Demo.yml b/.github/workflows/Lucene-Net-Tests-Demo.yml
index 9a80a1e02c..309b905604 100644
--- a/.github/workflows/Lucene-Net-Tests-Demo.yml
+++ b/.github/workflows/Lucene-Net-Tests-Demo.yml
@@ -58,14 +58,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Demo/Lucene.Net.Tests.Demo.csproj'
trx_file_name: 'TestResults.trx'
@@ -80,12 +84,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Expressions.yml b/.github/workflows/Lucene-Net-Tests-Expressions.yml
index a758155bc4..59070e46ab 100644
--- a/.github/workflows/Lucene-Net-Tests-Expressions.yml
+++ b/.github/workflows/Lucene-Net-Tests-Expressions.yml
@@ -51,14 +51,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Expressions/Lucene.Net.Tests.Expressions.csproj'
trx_file_name: 'TestResults.trx'
@@ -73,12 +77,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Facet.yml b/.github/workflows/Lucene-Net-Tests-Facet.yml
index f736265c95..ed1f5ad4fa 100644
--- a/.github/workflows/Lucene-Net-Tests-Facet.yml
+++ b/.github/workflows/Lucene-Net-Tests-Facet.yml
@@ -53,14 +53,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Facet/Lucene.Net.Tests.Facet.csproj'
trx_file_name: 'TestResults.trx'
@@ -75,12 +79,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Grouping.yml b/.github/workflows/Lucene-Net-Tests-Grouping.yml
index 33666b1906..6bff3c9db9 100644
--- a/.github/workflows/Lucene-Net-Tests-Grouping.yml
+++ b/.github/workflows/Lucene-Net-Tests-Grouping.yml
@@ -51,14 +51,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Grouping/Lucene.Net.Tests.Grouping.csproj'
trx_file_name: 'TestResults.trx'
@@ -73,12 +77,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Highlighter.yml b/.github/workflows/Lucene-Net-Tests-Highlighter.yml
index e66f384d74..43a9f1bb3a 100644
--- a/.github/workflows/Lucene-Net-Tests-Highlighter.yml
+++ b/.github/workflows/Lucene-Net-Tests-Highlighter.yml
@@ -53,14 +53,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Highlighter/Lucene.Net.Tests.Highlighter.csproj'
trx_file_name: 'TestResults.trx'
@@ -75,12 +79,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-ICU.yml b/.github/workflows/Lucene-Net-Tests-ICU.yml
index 70c1d17071..b9836b1676 100644
--- a/.github/workflows/Lucene-Net-Tests-ICU.yml
+++ b/.github/workflows/Lucene-Net-Tests-ICU.yml
@@ -66,14 +66,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj'
trx_file_name: 'TestResults.trx'
@@ -88,12 +92,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Join.yml b/.github/workflows/Lucene-Net-Tests-Join.yml
index 91a1a03753..1f4cfb8296 100644
--- a/.github/workflows/Lucene-Net-Tests-Join.yml
+++ b/.github/workflows/Lucene-Net-Tests-Join.yml
@@ -52,14 +52,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Join/Lucene.Net.Tests.Join.csproj'
trx_file_name: 'TestResults.trx'
@@ -74,12 +78,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Memory.yml b/.github/workflows/Lucene-Net-Tests-Memory.yml
index c81ea4475f..9fc87fce0e 100644
--- a/.github/workflows/Lucene-Net-Tests-Memory.yml
+++ b/.github/workflows/Lucene-Net-Tests-Memory.yml
@@ -54,14 +54,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Memory/Lucene.Net.Tests.Memory.csproj'
trx_file_name: 'TestResults.trx'
@@ -76,12 +80,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Misc.yml b/.github/workflows/Lucene-Net-Tests-Misc.yml
index fcffa6eb9f..a87942c410 100644
--- a/.github/workflows/Lucene-Net-Tests-Misc.yml
+++ b/.github/workflows/Lucene-Net-Tests-Misc.yml
@@ -50,14 +50,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Misc/Lucene.Net.Tests.Misc.csproj'
trx_file_name: 'TestResults.trx'
@@ -72,12 +76,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Queries.yml b/.github/workflows/Lucene-Net-Tests-Queries.yml
index f98d7db998..97ddb9dfdc 100644
--- a/.github/workflows/Lucene-Net-Tests-Queries.yml
+++ b/.github/workflows/Lucene-Net-Tests-Queries.yml
@@ -50,14 +50,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Queries/Lucene.Net.Tests.Queries.csproj'
trx_file_name: 'TestResults.trx'
@@ -72,12 +76,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-QueryParser.yml b/.github/workflows/Lucene-Net-Tests-QueryParser.yml
index a7af8438ae..24447a87c2 100644
--- a/.github/workflows/Lucene-Net-Tests-QueryParser.yml
+++ b/.github/workflows/Lucene-Net-Tests-QueryParser.yml
@@ -56,14 +56,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj'
trx_file_name: 'TestResults.trx'
@@ -78,12 +82,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Replicator.yml b/.github/workflows/Lucene-Net-Tests-Replicator.yml
index 3a91d0010c..15085bfe7e 100644
--- a/.github/workflows/Lucene-Net-Tests-Replicator.yml
+++ b/.github/workflows/Lucene-Net-Tests-Replicator.yml
@@ -55,14 +55,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Replicator/Lucene.Net.Tests.Replicator.csproj'
trx_file_name: 'TestResults.trx'
@@ -77,12 +81,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Sandbox.yml b/.github/workflows/Lucene-Net-Tests-Sandbox.yml
index 190699badb..a00a9af96f 100644
--- a/.github/workflows/Lucene-Net-Tests-Sandbox.yml
+++ b/.github/workflows/Lucene-Net-Tests-Sandbox.yml
@@ -51,14 +51,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Sandbox/Lucene.Net.Tests.Sandbox.csproj'
trx_file_name: 'TestResults.trx'
@@ -73,12 +77,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Spatial.yml b/.github/workflows/Lucene-Net-Tests-Spatial.yml
index 89f85219a8..4538a60019 100644
--- a/.github/workflows/Lucene-Net-Tests-Spatial.yml
+++ b/.github/workflows/Lucene-Net-Tests-Spatial.yml
@@ -52,14 +52,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Spatial/Lucene.Net.Tests.Spatial.csproj'
trx_file_name: 'TestResults.trx'
@@ -74,12 +78,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-Suggest.yml b/.github/workflows/Lucene-Net-Tests-Suggest.yml
index 47b724043f..43b01ae17a 100644
--- a/.github/workflows/Lucene-Net-Tests-Suggest.yml
+++ b/.github/workflows/Lucene-Net-Tests-Suggest.yml
@@ -53,14 +53,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.Suggest/Lucene.Net.Tests.Suggest.csproj'
trx_file_name: 'TestResults.trx'
@@ -75,12 +79,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml
index 89bf59e290..2effe4d3db 100644
--- a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml
+++ b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml
@@ -49,14 +49,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.TestFramework.DependencyInjection/Lucene.Net.Tests.TestFramework.DependencyInjection.csproj'
trx_file_name: 'TestResults.trx'
@@ -71,12 +75,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework.yml b/.github/workflows/Lucene-Net-Tests-TestFramework.yml
index 3903649343..56da0f0a7b 100644
--- a/.github/workflows/Lucene-Net-Tests-TestFramework.yml
+++ b/.github/workflows/Lucene-Net-Tests-TestFramework.yml
@@ -51,14 +51,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests.TestFramework/Lucene.Net.Tests.TestFramework.csproj'
trx_file_name: 'TestResults.trx'
@@ -73,12 +77,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-_A-D.yml b/.github/workflows/Lucene-Net-Tests-_A-D.yml
index a3c0a02368..ed3de18500 100644
--- a/.github/workflows/Lucene-Net-Tests-_A-D.yml
+++ b/.github/workflows/Lucene-Net-Tests-_A-D.yml
@@ -60,14 +60,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests._A-D/Lucene.Net.Tests._A-D.csproj'
trx_file_name: 'TestResults.trx'
@@ -82,12 +86,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-_E-I.yml b/.github/workflows/Lucene-Net-Tests-_E-I.yml
index ae8780de20..658e9fc76b 100644
--- a/.github/workflows/Lucene-Net-Tests-_E-I.yml
+++ b/.github/workflows/Lucene-Net-Tests-_E-I.yml
@@ -70,14 +70,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests._E-I/Lucene.Net.Tests._E-I.csproj'
trx_file_name: 'TestResults.trx'
@@ -92,12 +96,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-_I-J.yml b/.github/workflows/Lucene-Net-Tests-_I-J.yml
index 8be71ecde5..ad9bce4b7e 100644
--- a/.github/workflows/Lucene-Net-Tests-_I-J.yml
+++ b/.github/workflows/Lucene-Net-Tests-_I-J.yml
@@ -75,14 +75,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests._I-J/Lucene.Net.Tests._I-J.csproj'
trx_file_name: 'TestResults.trx'
@@ -97,12 +101,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-_J-S.yml b/.github/workflows/Lucene-Net-Tests-_J-S.yml
index d67cbf066a..49f6aa8190 100644
--- a/.github/workflows/Lucene-Net-Tests-_J-S.yml
+++ b/.github/workflows/Lucene-Net-Tests-_J-S.yml
@@ -62,14 +62,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests._J-S/Lucene.Net.Tests._J-S.csproj'
trx_file_name: 'TestResults.trx'
@@ -84,12 +88,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/.github/workflows/Lucene-Net-Tests-_T-Z.yml b/.github/workflows/Lucene-Net-Tests-_T-Z.yml
index 984770dc57..2cc13fb001 100644
--- a/.github/workflows/Lucene-Net-Tests-_T-Z.yml
+++ b/.github/workflows/Lucene-Net-Tests-_T-Z.yml
@@ -57,14 +57,18 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
- framework: [net5.0, netcoreapp2.1, net48]
+ framework: [net5.0, net461, net48]
platform: [x64]
configuration: [Release]
exclude:
- os: ubuntu-latest
framework: net48
+ - os: ubuntu-latest
+ framework: net461
- os: macos-latest
framework: net48
+ - os: macos-latest
+ framework: net461
env:
project_path: './src/Lucene.Net.Tests._T-Z/Lucene.Net.Tests._T-Z.csproj'
trx_file_name: 'TestResults.trx'
@@ -79,12 +83,6 @@ jobs:
dotnet-version: '3.1.412'
if: ${{ startswith(matrix.framework, 'netcoreapp3.') }}
- - name: Setup .NET 2.1 SDK
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: '2.1.817'
- if: ${{ startswith(matrix.framework, 'netcoreapp2.') }}
-
- name: Setup .NET 5 SDK
uses: actions/setup-dotnet@v1
with:
diff --git a/Directory.Build.targets b/Directory.Build.targets
index d9ef05ee0c..89d4ccd17c 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -105,8 +105,6 @@
$(DefineConstants);NETFRAMEWORK
$(DefineConstants);FEATURE_ARGITERATOR
$(DefineConstants);FEATURE_MEMORYMAPPEDFILESECURITY
- $(DefineConstants);FEATURE_OPENNLP
- $(DefineConstants);FEATURE_SERIALIZABLE_EXCEPTIONS
$(DefineConstants);FEATURE_SECURITYPERMISSIONS_HOSTPROTECTION
@@ -116,6 +114,16 @@
full
+
+
+
+
+ $(DefineConstants);FEATURE_OPENNLP
+ $(DefineConstants);FEATURE_SERIALIZABLE_EXCEPTIONS
+
+
+
+
diff --git a/TestTargetFramework.props b/TestTargetFramework.props
index a0581ad59f..10b3b4753d 100644
--- a/TestTargetFramework.props
+++ b/TestTargetFramework.props
@@ -1,4 +1,4 @@
-
+
+
-
net5.0
- net5.0;netcoreapp3.1;netcoreapp2.1
- $(TargetFrameworks);net48
+ net5.0;netcoreapp3.1
+ $(TargetFrameworks);net48;net461
+
+
+ TargetFramework=netstandard2.0
+
+
true
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index ccbe089edd..215299c1e0 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -41,7 +41,7 @@ name: 'vNext$(rev:.r)' # Format for build number (will be overridden)
# IsNightly: 'false' (Optional - set to 'true' to run additional tests for the nightly build)
# IsWeekly: 'false' (Optional - set to 'true' to run additional tests for the weekly build)
# RunSlowTests: 'true' (Optional - set to 'false' to skip slow tests to make testing time shorter)
-# RunAwaitsFixTests: 'false' (Optional - set to 'true' to run flakey tests)
+# RunAwaitsFixTests: 'true' (Optional - set to 'false' to disable running flakey tests)
# Codec: 'random' (Optional - set to a specific codec to test the same codec throughout all tests)
# DocValuesFormat: 'random' (Optional - set to a specific doc values format to test the same codec throughout all tests)
# PostingsFormat: 'random' (Optional - set to a specific postings format to test the same codec throughout all tests)
@@ -250,7 +250,7 @@ stages:
- template: 'build/azure-templates/publish-test-binaries.yml'
parameters:
publishDirectory: $(PublishTempDirectory)
- framework: 'netcoreapp2.1'
+ framework: 'net461'
binaryArtifactName: '$(BinaryArtifactName)'
testSettingsFilePath: '$(Build.ArtifactStagingDirectory)/$(TestSettingsFileName)'
@@ -454,7 +454,7 @@ stages:
maximumParallelJobs: $(maximumParallelJobs)
maximumAllowedFailures: $(maximumAllowedFailures)
- - job: Test_netcoreapp2_2_x64
+ - job: Test_net461_x64
condition: and(succeeded(), ne(variables['RunTests'], 'false'))
strategy:
matrix:
@@ -462,25 +462,15 @@ stages:
osName: 'Windows'
imageName: 'windows-2019'
maximumParallelJobs: 8
- maximumAllowedFailures: 4 # Maximum allowed failures for a successful build
- Linux:
- osName: 'Linux'
- imageName: 'ubuntu-latest'
- maximumParallelJobs: 7
- maximumAllowedFailures: 4 # Maximum allowed failures for a successful build
- macOS:
- osName: 'macOS'
- imageName: 'macOS-latest'
- maximumParallelJobs: 7
- maximumAllowedFailures: 4 # Maximum allowed failures for a successful build
- displayName: 'Test netcoreapp2.1,x64 on'
+ maximumAllowedFailures: 2 # Maximum allowed failures for a successful build
+ displayName: 'Test net461,x64 on'
pool:
vmImage: $(imageName)
steps:
- template: 'build/azure-templates/run-tests-on-os.yml'
parameters:
osName: $(osName)
- framework: 'netcoreapp2.1'
+ framework: 'net461'
vsTestPlatform: 'x64'
testBinariesArtifactName: '$(TestBinariesArtifactName)'
nugetArtifactName: '$(NuGetArtifactName)'
@@ -488,7 +478,7 @@ stages:
maximumParallelJobs: $(maximumParallelJobs)
maximumAllowedFailures: $(maximumAllowedFailures)
- - job: Test_netcoreapp2_2_x86 # Only run Nightly or if explicitly enabled with RunX86Tests
+ - job: Test_net461_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:
@@ -496,25 +486,15 @@ stages:
osName: 'Windows'
imageName: 'windows-2019'
maximumParallelJobs: 8
- maximumAllowedFailures: 4 # Maximum allowed failures for a successful build
- Linux:
- osName: 'Linux'
- imageName: 'ubuntu-latest'
- maximumParallelJobs: 7
- maximumAllowedFailures: 4 # Maximum allowed failures for a successful build
- macOS:
- osName: 'macOS'
- imageName: 'macOS-latest'
- maximumParallelJobs: 7
- maximumAllowedFailures: 4 # Maximum allowed failures for a successful build
- displayName: 'Test netcoreapp2.1,x86 on'
+ maximumAllowedFailures: 7 # Maximum allowed failures for a successful build
+ displayName: 'Test net461,x86 on'
pool:
vmImage: $(imageName)
steps:
- template: 'build/azure-templates/run-tests-on-os.yml'
parameters:
osName: $(osName)
- framework: 'netcoreapp2.1'
+ framework: 'net461'
vsTestPlatform: 'x86'
testBinariesArtifactName: '$(TestBinariesArtifactName)'
nugetArtifactName: '$(NuGetArtifactName)'
diff --git a/build/Dependencies.props b/build/Dependencies.props
index 8ae8beb421..e4d508409e 100644
--- a/build/Dependencies.props
+++ b/build/Dependencies.props
@@ -84,6 +84,7 @@
4.3.0
4.7.0
4.3.0
+ 5.0.0
2.3.1
$(XUnitPackageVersion)
diff --git a/build/TestReferences.Common.targets b/build/TestReferences.Common.targets
index 23e37ac991..2a169c3d41 100644
--- a/build/TestReferences.Common.targets
+++ b/build/TestReferences.Common.targets
@@ -1,4 +1,4 @@
-
-
- true
-
-
@@ -39,4 +35,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/build/azure-templates/publish-test-results-for-test-projects.yml b/build/azure-templates/publish-test-results-for-test-projects.yml
index 4d6751c8bf..d31e0c6a1c 100644
--- a/build/azure-templates/publish-test-results-for-test-projects.yml
+++ b/build/azure-templates/publish-test-results-for-test-projects.yml
@@ -74,7 +74,7 @@ steps:
- template: publish-test-results.yml
parameters:
testProjectName: 'Lucene.Net.Tests.CodeAnalysis'
- framework: 'netcoreapp2.1' # Since condtions are not supported for templates, we check for the file existence within publish-test-results.yml
+ framework: 'net5.0' # Since condtions are not supported for templates, we check for the file existence within publish-test-results.yml
vsTestPlatform: '${{ parameters.vsTestPlatform }}'
osName: '${{ parameters.osName }}'
testResultsFormat: '${{ parameters.testResultsFormat }}'
diff --git a/build/azure-templates/run-tests-on-os.yml b/build/azure-templates/run-tests-on-os.yml
index 2037f15e6a..d578ab024c 100644
--- a/build/azure-templates/run-tests-on-os.yml
+++ b/build/azure-templates/run-tests-on-os.yml
@@ -73,12 +73,6 @@ steps:
#- pwsh: Get-ChildItem -Path $(System.DefaultWorkingDirectory) # Uncomment for debugging
-- task: UseDotNet@2
- displayName: 'Use .NET Core sdk 2.1.817'
- inputs:
- version: 2.1.817
- condition: and(succeeded(), contains('${{ parameters.framework }}', 'netcoreapp2.'))
-
- task: UseDotNet@2
displayName: 'Use .NET Core sdk 3.1.412'
inputs:
diff --git a/build/build.ps1 b/build/build.ps1
index 1fc73eb810..52ea7a356d 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -49,7 +49,7 @@ properties {
[int]$maximumParalellJobs = 8
#test paramters
- [string]$frameworks_to_test = "net5.0,netcoreapp3.1,netcoreapp2.1,net48"
+ [string]$frameworks_to_test = "net5.0,netcoreapp3.1,net48,net461"
[string]$where = ""
}
@@ -300,13 +300,6 @@ task Test -depends InstallSDK, UpdateLocalSDKVersion, Restore -description "This
continue
}
- # Special case - Morfologik doesn't support .NET Standard 1.x
- if ($testName.Contains("Tests.Analysis.Morfologik") -and ($framework.StartsWith("netcoreapp1."))) {
- $totalProjects--
- $remainingProjects--
- continue
- }
-
Write-Host " Next Project in Queue: $testName, Framework: $framework" -ForegroundColor Yellow
# Pause if we have queued too many parallel jobs
diff --git a/src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj b/src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj
index f4899eddfd..b7a0e1fc1d 100644
--- a/src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj
+++ b/src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj
@@ -35,34 +35,86 @@
-
+
+ $(SetTargetFramework)
+
-
+
+ $(SetTargetFramework)
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
@@ -74,6 +126,10 @@
+
+
+
+
diff --git a/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj b/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj
index c8763c53ab..690238603b 100644
--- a/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj
+++ b/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj
@@ -41,8 +41,12 @@
-
-
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
@@ -51,11 +55,11 @@
-
-
+
+
-
+
diff --git a/src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj b/src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj
index 4581bbb2bb..8579e4857a 100644
--- a/src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj
+++ b/src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj
@@ -34,8 +34,12 @@
-
-
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
@@ -44,4 +48,8 @@
+
+
+
+
diff --git a/src/Lucene.Net.Tests.Analysis.Morfologik/Lucene.Net.Tests.Analysis.Morfologik.csproj b/src/Lucene.Net.Tests.Analysis.Morfologik/Lucene.Net.Tests.Analysis.Morfologik.csproj
index 8968150b5a..450609794c 100644
--- a/src/Lucene.Net.Tests.Analysis.Morfologik/Lucene.Net.Tests.Analysis.Morfologik.csproj
+++ b/src/Lucene.Net.Tests.Analysis.Morfologik/Lucene.Net.Tests.Analysis.Morfologik.csproj
@@ -35,8 +35,12 @@
-
-
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
diff --git a/src/Lucene.Net.Tests.Analysis.Phonetic/Lucene.Net.Tests.Analysis.Phonetic.csproj b/src/Lucene.Net.Tests.Analysis.Phonetic/Lucene.Net.Tests.Analysis.Phonetic.csproj
index 389af361eb..5bd0fd7ff2 100644
--- a/src/Lucene.Net.Tests.Analysis.Phonetic/Lucene.Net.Tests.Analysis.Phonetic.csproj
+++ b/src/Lucene.Net.Tests.Analysis.Phonetic/Lucene.Net.Tests.Analysis.Phonetic.csproj
@@ -28,8 +28,12 @@
-
-
+
+ $(SetTargetFramework)
+
+
+ $(SetTargetFramework)
+
diff --git a/src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj b/src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj
index 65982e0b41..c5315ae07c 100644
--- a/src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj
+++ b/src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj
@@ -1,4 +1,4 @@
-
+