Directory.Build.props (44 lines of code) (raw):

<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <RestoreLockedMode Condition="'$(ContinuousIntegrationBuild)' == 'true'" /> </PropertyGroup> <PropertyGroup> <Product>Elastic.SemanticKernel</Product> <Authors>Elastic and contributors</Authors> <Company>Elastic NV</Company> <Copyright>Elastic NV</Copyright> <NeutralLanguage>en</NeutralLanguage> </PropertyGroup> <PropertyGroup> <UseArtifactsOutput>true</UseArtifactsOutput> <ArtifactsPath>$(MSBuildThisFileDirectory).artifacts</ArtifactsPath> </PropertyGroup> <!-- https://aka.ms/vs-build-acceleration --> <PropertyGroup> <AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio> <ProduceReferenceAssembly>true</ProduceReferenceAssembly> </PropertyGroup> <ItemGroup> <!-- <BuildAccelerationIncompatiblePackage Include="" /> --> </ItemGroup> <PropertyGroup Label="Common Debug Settings"> <DebugType>full</DebugType> <DebugSymbols>true</DebugSymbols> </PropertyGroup> <PropertyGroup> <!-- Language Features --> <LangVersion>preview</LangVersion> <Nullable>enable</Nullable> <ImplicitUsings>disable</ImplicitUsings> <!-- Restore Behavior --> <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> <!-- Compiler Options --> <Deterministic>true</Deterministic> <!-- Analyzer Options --> <AnalysisLevel>latest-all</AnalysisLevel> <EnableNETAnalyzers>true</EnableNETAnalyzers> <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> <GenerateDocumentationFile>true</GenerateDocumentationFile> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)' == 'Debug'"> <TreatWarningsAsErrors>false</TreatWarningsAsErrors> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)' == 'Release' or '$(ContinuousIntegrationBuild)' == 'true'"> <TreatWarningsAsErrors>true</TreatWarningsAsErrors> </PropertyGroup> </Project>