blob: 1ebe908be9f60f599da0f1cd6cafd9e96b176840 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="$(SolutionDir)TestTargetFramework.props" />
<PropertyGroup>
<!-- Allow specific target framework to flow in from TestTargetFrameworks.props -->
<TargetFrameworks Condition=" '$(TargetFramework)' == '' ">net8.0;net6.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(TargetFramework)' == '' AND $([MSBuild]::IsOsPlatform('Windows')) ">$(TargetFrameworks);net48</TargetFrameworks>
<AssemblyTitle>Lucene.Net.Tests.Analysis.OpenNLP</AssemblyTitle>
<RootNamespace>Lucene.Net.Analysis.OpenNlp</RootNamespace>
</PropertyGroup>
<!-- NOTE: Technically, we can test on net472, but we don't want to publish net472 assemblies when we are testing netstandard2.0. -->
<PropertyGroup Condition=" '$(TargetFramework)' == 'net472' Or $(TargetFramework.StartsWith('net5.')) ">
<!-- For CI, we don't publish the projects and exclude them from the test run by setting IsPublishable=false and IsTestProject=false -->
<IsPublishable>false</IsPublishable>
<IsTestProject>false</IsTestProject>
<!-- For the IDE, the above doesn't work. Redirect to a supported test framework instead. -->
<TargetFramework Condition=" $(TargetFramework.StartsWith('net5.')) ">net8.0</TargetFramework>
<TargetFramework Condition=" '$(TargetFramework)' == 'net472' ">net48</TargetFramework>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="**/*.dict" Exclude="bin/**/*;obj/**/*" Label="Dict Test Data" />
<EmbeddedResource Include="**/*.bin" Exclude="bin/**/*;obj/**/*" Label="Bin Test Data" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Lucene.Net.Analysis.Common\Lucene.Net.Analysis.Common.csproj" />
<ProjectReference Include="..\Lucene.Net.Analysis.OpenNLP\Lucene.Net.Analysis.OpenNLP.csproj" />
<ProjectReference Include="..\Lucene.Net.Codecs\Lucene.Net.Codecs.csproj" />
<ProjectReference Include="..\Lucene.Net.TestFramework\Lucene.Net.TestFramework.csproj" />
</ItemGroup>
<Import Project="$(SolutionDir).build/TestReferences.Common.targets" />
</Project>