Skip to content

Commit

Permalink
Remove netstandard2.0 target, apache#1041
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Dec 3, 2024
1 parent 505464f commit d0a5b21
Show file tree
Hide file tree
Showing 30 changed files with 33 additions and 156 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Generate-TestWorkflows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ param(

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

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

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

Expand Down
11 changes: 5 additions & 6 deletions TestTargetFramework.props
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,17 @@
net8.0 | net8.0
net6.0 | netstandard2.1
net48 | net462
net472 | netstandard2.0
-->

<TargetFrameworks Condition=" '$(TestFrameworks)' == 'true' ">net9.0;net8.0;net6.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(TestFrameworks)' == 'true' AND $([MSBuild]::IsOsPlatform('Windows')) ">$(TargetFrameworks);net48;net472</TargetFrameworks>
<TargetFrameworks Condition=" '$(TestFrameworks)' == 'true' AND $([MSBuild]::IsOsPlatform('Windows')) ">$(TargetFrameworks);net48</TargetFrameworks>
<TargetFramework Condition=" '$(TargetFrameworks)' != '' "></TargetFramework>
</PropertyGroup>

<PropertyGroup Label="Mismatched Target Framework (to override the target framework under test)">
<SetTargetFramework></SetTargetFramework>
<SetTargetFramework Condition=" '$(TargetFramework)' == 'net472' ">TargetFramework=netstandard2.0</SetTargetFramework>
</PropertyGroup>
<!-- <PropertyGroup Label="Mismatched Target Framework (to override the target framework under test)">-->
<!-- <SetTargetFramework></SetTargetFramework>-->
<!-- <SetTargetFramework Condition=" '$(TargetFramework)' == 'net472' ">TargetFramework=netstandard2.0</SetTargetFramework>-->
<!-- </PropertyGroup>-->

<PropertyGroup Label="Assembly Publishing">
<IsPublishable>true</IsPublishable>
Expand Down
59 changes: 0 additions & 59 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,6 @@ stages:
configuration: '$(BuildConfiguration)'
platform: '$(BuildPlatform)'

- template: '.build/azure-templates/publish-test-binaries.yml'
parameters:
publishDirectory: $(PublishDirectory)
framework: 'net472'
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 @@ -515,56 +506,6 @@ stages:
maximumAllowedFailures: $(maximumAllowedFailures)
dotNetSdkVersion: '$(DotNetSDKVersion)'

- job: Test_net472_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
displayName: 'Test net472,x64 on'
pool:
vmImage: $(imageName)
steps:
- template: '.build/azure-templates/run-tests-on-os.yml'
parameters:
osName: $(osName)
framework: 'net472'
vsTestPlatform: 'x64'
testBinariesArtifactName: '$(TestBinariesArtifactName)'
nugetArtifactName: '$(NuGetArtifactName)'
testResultsArtifactName: '$(TestResultsArtifactName)'
maximumParallelJobs: $(maximumParallelJobs)
maximumAllowedFailures: $(maximumAllowedFailures)
dotNetSdkVersion: '$(DotNetSDKVersion)'

- job: Test_net472_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 net472,x86 on'
pool:
vmImage: $(imageName)
steps:
- template: '.build/azure-templates/run-tests-on-os.yml'
parameters:
osName: $(osName)
framework: 'net472'
vsTestPlatform: 'x86'
testBinariesArtifactName: '$(TestBinariesArtifactName)'
nugetArtifactName: '$(NuGetArtifactName)'
testResultsArtifactName: '$(TestResultsArtifactName)'
maximumParallelJobs: $(maximumParallelJobs)
maximumAllowedFailures: $(maximumAllowedFailures)
dotNetSdkVersion: '$(DotNetSDKVersion)'

- job: Test_net48_Windows_x64
condition: and(succeeded(), ne(variables['RunTests'], 'false'))
displayName: 'Test net48,x64 on Windows'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Analysis.Common</AssemblyTitle>
<PackageTags>$(PackageTags);analysis</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<EmbeddedResource Include="**/*.rslp" Exclude="bin/**/*;obj/**/*" Label="RSLP Test Data" />
<EmbeddedResource Include="**/*.dtd" Exclude="bin/**/*;obj/**/*" Label="DTD Test Data" />
Expand All @@ -50,10 +48,6 @@
<ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Memory" Version="$(SystemMemoryPackageVersion)" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
<PackageReference Include="System.Memory" Version="$(SystemMemoryPackageVersion)" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Analysis.Kuromoji</AssemblyTitle>
<PackageTags>$(PackageTags);analysis;japanese</PackageTags>
Expand Down Expand Up @@ -58,10 +58,6 @@
<PackageReference Include="System.Text.Encoding.CodePages" Version="$(SystemTextEncodingCodePagesPackageVersion)" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Text.Encoding.CodePages" Version="$(SystemTextEncodingCodePagesPackageVersion)" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Lucene.Net.Tests.Analysis.Kuromoji" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Analysis.Morfologik</AssemblyTitle>
<RootNamespace>Lucene.Net.Analysis</RootNamespace>
Expand All @@ -39,8 +39,6 @@
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<Compile Remove="Properties\AssemblyInfo.cs" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Analysis.Phonetic</AssemblyTitle>
<PackageTags>$(PackageTags);analysis;soundex;double;metaphone;sounds;like;beider;morse;cologne;caverphone;nysiis;match;rating</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<EmbeddedResource Include="Language\*.txt" />
<EmbeddedResource Include="Language\Bm\*" Exclude="*.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Analysis.SmartCn</AssemblyTitle>
<PackageTags>$(PackageTags);analysis;chinese;smart</PackageTags>
Expand Down Expand Up @@ -60,8 +60,4 @@
<PackageReference Include="System.Text.Encoding.CodePages" Version="$(SystemTextEncodingCodePagesPackageVersion)" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Text.Encoding.CodePages" Version="$(SystemTextEncodingCodePagesPackageVersion)" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Analysis.Stempel</AssemblyTitle>
<PackageTags>$(PackageTags);analysis;polish</PackageTags>
Expand Down
4 changes: 1 addition & 3 deletions src/Lucene.Net.Benchmark/Lucene.Net.Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Benchmark</AssemblyTitle>
<PackageTags>$(PackageTags);benchmark</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\dotnet\Lucene.Net.ICU\Lucene.Net.ICU.csproj" />
<ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Classification</AssemblyTitle>
<PackageTags>$(PackageTags);classification</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj" />
<ProjectReference Include="..\Lucene.Net.Queries\Lucene.Net.Queries.csproj" />
Expand Down
4 changes: 1 addition & 3 deletions src/Lucene.Net.Codecs/Lucene.Net.Codecs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Codecs</AssemblyTitle>
<PackageTags>$(PackageTags);codec</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Lucene.Net.Demo/Lucene.Net.Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<!-- Demo is deployed through the dotnet/tools/lucene-cli package -->

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Demo</AssemblyTitle>
<Description>Simple example code for the Lucene.Net full-text search engine library from The Apache Software Foundation.</Description>
Expand Down
8 changes: 1 addition & 7 deletions src/Lucene.Net.Expressions/Lucene.Net.Expressions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Expressions</AssemblyTitle>
<PackageTags>$(PackageTags);expression</PackageTags>
Expand All @@ -53,12 +53,6 @@
<PackageReference Include="System.Reflection.TypeExtensions" Version="$(SystemReflectionTypeExtensionsPackageVersion)" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Reflection.Emit" Version="$(SystemReflectionEmitPackageVersion)" />
<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="$(SystemReflectionEmitILGenerationPackageVersion)" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="$(SystemReflectionTypeExtensionsPackageVersion)" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="JS\JavascriptCompiler.properties" />
</ItemGroup>
Expand Down
6 changes: 1 addition & 5 deletions src/Lucene.Net.Facet/Lucene.Net.Facet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Facet</AssemblyTitle>
<PackageTags>$(PackageTags);facet;faceted</PackageTags>
Expand All @@ -43,10 +43,6 @@
<ProjectReference Include="..\Lucene.Net.Queries\Lucene.Net.Queries.csproj" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' ">
<PackageReference Include="System.Memory" Version="$(SystemMemoryPackageVersion)" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net462' ">
<PackageReference Include="System.Memory" Version="$(SystemMemoryPackageVersion)" />
</ItemGroup>
Expand Down
4 changes: 1 addition & 3 deletions src/Lucene.Net.Grouping/Lucene.Net.Grouping.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Grouping</AssemblyTitle>
<PackageTags>$(PackageTags);grouping;group</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj" />
<ProjectReference Include="..\Lucene.Net.Queries\Lucene.Net.Queries.csproj" />
Expand Down
4 changes: 1 addition & 3 deletions src/Lucene.Net.Highlighter/Lucene.Net.Highlighter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Highlighter</AssemblyTitle>
<PackageTags>$(PackageTags);highlight;highlighter</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net.Memory\Lucene.Net.Memory.csproj" />
<ProjectReference Include="..\Lucene.Net.Queries\Lucene.Net.Queries.csproj" />
Expand Down
4 changes: 1 addition & 3 deletions src/Lucene.Net.Join/Lucene.Net.Join.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<RootNamespace>Lucene.Net.Search.Join</RootNamespace>

Expand All @@ -40,8 +40,6 @@
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net.Grouping\Lucene.Net.Grouping.csproj" />
</ItemGroup>
Expand Down
4 changes: 1 addition & 3 deletions src/Lucene.Net.Memory/Lucene.Net.Memory.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
<Import Project="$(SolutionDir).build/nuget.props" />

<PropertyGroup>
<TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks>
<TargetFrameworks>net8.0;netstandard2.1;net462</TargetFrameworks>

<AssemblyTitle>Lucene.Net.Memory</AssemblyTitle>
<PackageTags>$(PackageTags);memory</PackageTags>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<NoWarn>$(NoWarn);1591;1573</NoWarn>
</PropertyGroup>



<ItemGroup>
<ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj" />
</ItemGroup>
Expand Down
Loading

0 comments on commit d0a5b21

Please sign in to comment.