| <?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"> |
| |
| <!-- These properties must be set prior to importing nuget.props --> |
| <PropertyGroup> |
| <Description>Dynamically computed values to sort/facet/search on based on a pluggable grammar for the Lucene.NET full-text search engine library from The Apache Software Foundation.</Description> |
| <PackageDocumentationRelativeUrl>expressions/overview.html</PackageDocumentationRelativeUrl> |
| </PropertyGroup> |
| |
| <Import Project="$(SolutionDir).build/nuget.props" /> |
| |
| <PropertyGroup> |
| <TargetFrameworks>net8.0;netstandard2.1;netstandard2.0;net462</TargetFrameworks> |
| |
| <AssemblyTitle>Lucene.Net.Expressions</AssemblyTitle> |
| <PackageTags>$(PackageTags);expression</PackageTags> |
| <DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> |
| <NoWarn>$(NoWarn);1591;1573</NoWarn> |
| </PropertyGroup> |
| |
| <ItemGroup> |
| <ProjectReference Include="..\Lucene.Net.Queries\Lucene.Net.Queries.csproj" /> |
| </ItemGroup> |
| |
| <PropertyGroup> |
| <Antlr4CodeGeneratorVersion>$([System.IO.Path]::GetFileName('$(PkgAntlr4_CodeGenerator)'))</Antlr4CodeGeneratorVersion> |
| <!-- Required for Antlr4BuildTasks to find the antlr4 .jar file. When missing, |
| it causes an error on the SonarCloud workflow. --> |
| <Antlr4ToolPath>$(PkgAntlr4_CodeGenerator)\tools\antlr4-csharp-$(Antlr4CodeGeneratorVersion)-complete.jar</Antlr4ToolPath> |
| </PropertyGroup> |
| |
| <ItemGroup> |
| <!-- Required to supply the antlr4 .jar file to Antlr4BuildTasks. --> |
| <PackageReference Include="Antlr4.CodeGenerator" Version="$(Antlr4CodeGeneratorPackageVersion)" PrivateAssets="all" ExcludeAssets="all" GeneratePathProperty="true" /> |
| <PackageReference Include="Antlr4.Runtime.Standard" Version="$(Antlr4RuntimeStandardPackageVersion)" /> |
| <PackageReference Include="Antlr4BuildTasks" Version="$(Antlr4BuildTasksPackageVersion)" PrivateAssets="all" IncludeAssets="build" /> |
| </ItemGroup> |
| |
| <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.1' "> |
| <PackageReference Include="System.Reflection.Emit" Version="$(SystemReflectionEmitPackageVersion)" /> |
| <PackageReference Include="System.Reflection.Emit.ILGeneration" Version="$(SystemReflectionEmitILGenerationPackageVersion)" /> |
| <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> |
| |
| <ItemGroup> |
| <Antlr4 Include="JS\Javascript.g4"> |
| <Listener>true</Listener> |
| <Visitor>false</Visitor> |
| <Package>Lucene.Net.Expressions.JS</Package> |
| </Antlr4> |
| </ItemGroup> |
| |
| </Project> |