openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
codegen/Directory.Build.props
40lines · modecode
| 1 | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 2 | <!-- |
| 3 | Code generation is intentionally not importing the root props file, as it |
| 4 | is isolated tooling and should not share settings with the main projects. |
| 5 | --> |
| 6 | |
| 7 | <!-- Custom Properties --> |
| 8 | <PropertyGroup> |
| 9 | <RepositoryRoot>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)..'))</RepositoryRoot> |
| 10 | <GeneratorTargetFrameworks>net10.0</GeneratorTargetFrameworks> |
| 11 | </PropertyGroup> |
| 12 | |
| 13 | <!-- Common Project Metadata --> |
| 14 | <PropertyGroup> |
| 15 | <Product>The official code generation utilities for the OpenAI .NET library</Product> |
| 16 | <Copyright>Copyright (c) 2026 OpenAI (https://openai.com)</Copyright> |
| 17 | <Company>OpenAI</Company> |
| 18 | <Authors>$(Company)</Authors> |
| 19 | <RepositoryUrl>https://github.com/openai/openai-dotnet</RepositoryUrl> |
| 20 | <NeutralLanguage>en-US</NeutralLanguage> |
| 21 | </PropertyGroup> |
| 22 | |
| 23 | <!-- Configuration --> |
| 24 | <PropertyGroup> |
| 25 | <LangVersion>latest</LangVersion> |
| 26 | <Nullable>enable</Nullable> |
| 27 | <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> |
| 28 | <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
| 29 | </PropertyGroup> |
| 30 | |
| 31 | <!-- |
| 32 | ============================================================== |
| 33 | OVERRIDES: Generator Test Projects |
| 34 | ============================================================== |
| 35 | --> |
| 36 | <PropertyGroup Condition="'$(IsTestProject)' == 'true' or $(MSBuildProjectName.Contains('Tests'))"> |
| 37 | <!-- Configuration --> |
| 38 | <GenerateAssemblyInfo>false</GenerateAssemblyInfo> |
| 39 | </PropertyGroup> |
| 40 | </Project> |