openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/OpenAI.csproj
85lines · modecode
| 1 | <Project Sdk="Microsoft.NET.Sdk"> |
| 2 | <PropertyGroup> |
| 3 | <Description> |
| 4 | The official .NET library for the OpenAI service API. |
| 5 | </Description> |
| 6 | <AssemblyTitle>SDK Code Generation OpenAI</AssemblyTitle> |
| 7 | <PackageTags>OpenAI;openai-dotnet;ChatGPT;Dall-E</PackageTags> |
| 8 | |
| 9 | <VersionPrefix>2.2.0</VersionPrefix> |
| 10 | <VersionSuffix>beta.2</VersionSuffix> |
| 11 | |
| 12 | <TargetFrameworks>net8.0;net6.0;netstandard2.0</TargetFrameworks> |
| 13 | <LangVersion>latest</LangVersion> |
| 14 | |
| 15 | <!-- Generate an XML documentation file for the project. --> |
| 16 | <GenerateDocumentationFile>true</GenerateDocumentationFile> |
| 17 | |
| 18 | <!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) --> |
| 19 | <PublishRepositoryUrl>true</PublishRepositoryUrl> |
| 20 | <PackageIcon>OpenAI.png</PackageIcon> |
| 21 | <PackageReadmeFile>README.md</PackageReadmeFile> |
| 22 | |
| 23 | <!-- Create a .snupkg file in addition to the .nupkg file. --> |
| 24 | <IncludeSymbols>true</IncludeSymbols> |
| 25 | <SymbolPackageFormat>snupkg</SymbolPackageFormat> |
| 26 | |
| 27 | <!-- Embed source files that are not tracked by the source control manager in the PDB --> |
| 28 | <EmbedUntrackedSources>true</EmbedUntrackedSources> |
| 29 | |
| 30 | <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
| 31 | |
| 32 | <!-- Disable missing XML documentation warnings --> |
| 33 | <NoWarn>$(NoWarn),1570,1573,1574,1591</NoWarn> |
| 34 | |
| 35 | <!-- Disable obsolete warnings --> |
| 36 | <NoWarn>$(NoWarn),0618</NoWarn> |
| 37 | |
| 38 | <!-- Disable unused fields warnings --> |
| 39 | <NoWarn>$(NoWarn),0169</NoWarn> |
| 40 | |
| 41 | <!-- Disable warnings for experimental APIs --> |
| 42 | <NoWarn>$(NoWarn),OPENAI001;OPENAI002</NoWarn> |
| 43 | |
| 44 | <Configurations>Debug;Release;Unsigned</Configurations> |
| 45 | |
| 46 | <IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable> |
| 47 | <IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible> |
| 48 | </PropertyGroup> |
| 49 | |
| 50 | <PropertyGroup Condition="'$(Configuration)' != 'Unsigned'"> |
| 51 | <!-- Sign the assembly with the specified key file. --> |
| 52 | <SignAssembly>true</SignAssembly> |
| 53 | <AssemblyOriginatorKeyFile>OpenAI.snk</AssemblyOriginatorKeyFile> |
| 54 | </PropertyGroup> |
| 55 | |
| 56 | <ItemGroup> |
| 57 | <InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' != 'Unsigned'"> |
| 58 | <PublicKey>0024000004800000940000000602000000240000525341310004000001000100097ad52abbeaa2e1a1982747cc0106534f65cfea6707eaed696a3a63daea80de2512746801a7e47f88e7781e71af960d89ba2e25561f70b0e2dbc93319e0af1961a719ccf5a4d28709b2b57a5d29b7c09dc8d269a490ebe2651c4b6e6738c27c5fb2c02469fe9757f0a3479ac310d6588a50a28d7dd431b907fd325e18b9e8ed</PublicKey> |
| 59 | </InternalsVisibleTo> |
| 60 | <InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' == 'Unsigned'" /> |
| 61 | </ItemGroup> |
| 62 | |
| 63 | <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> |
| 64 | <!-- Allow use of unsafe code, for System.Net.ServerSentEvents polyfill on netstandard2.0 |
| 65 | TODO https://github.com/openai/openai-dotnet/issues/41: Remove once polyfill for |
| 66 | System.Net.ServerSentEvents is removed in favor of referencing the package --> |
| 67 | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> |
| 68 | </PropertyGroup> |
| 69 | |
| 70 | <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'"> |
| 71 | <!-- Normalize stored file paths in symbols when in a CI build. --> |
| 72 | <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> |
| 73 | </PropertyGroup> |
| 74 | <ItemGroup> |
| 75 | <None Include="OpenAI.png" Pack="true" PackagePath="\" /> |
| 76 | <None Include="..\CHANGELOG.md" Pack="true" PackagePath="\" /> |
| 77 | <None Include="..\README.md" Pack="true" PackagePath="\" /> |
| 78 | </ItemGroup> |
| 79 | |
| 80 | <ItemGroup> |
| 81 | <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" /> |
| 82 | <PackageReference Include="System.ClientModel" Version="1.2.1" /> |
| 83 | <PackageReference Include="System.Diagnostics.DiagnosticSource" Version="6.0.1" /> |
| 84 | </ItemGroup> |
| 85 | </Project> |
| 86 | |