blob: 012c8326ee1147ffdbbed78fdab3e314df424f2a [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>
<AssemblyTitle>Lucene.Net.Tests.Cli</AssemblyTitle>
</PropertyGroup>
<PropertyGroup Condition=" $(TargetFramework.StartsWith('net4')) 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>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Compile Remove="SourceCode\TestInputForParser.cs" />
<None Remove="Configuration\appsettings.json" />
<EmbeddedResource Include="Configuration\appsettings.json" />
<EmbeddedResource Include="SourceCode\TestInputForParser.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\lucene-cli\lucene-cli.csproj" />
<ProjectReference Include="..\..\..\Lucene.Net\Lucene.Net.csproj" />
<ProjectReference Include="..\..\..\Lucene.Net.TestFramework\Lucene.Net.TestFramework.csproj" />
</ItemGroup>
<Import Project="$(SolutionDir).build/TestReferences.Common.targets" />
<ItemGroup>
<!-- Add the target framework as metadata so our assembly knows which target it is testing -->
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
<_Parameter1>TargetFramework</_Parameter1>
<_Parameter2>$(TargetFramework)</_Parameter2>
</AssemblyAttribute>
</ItemGroup>
</Project>