openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
OpenAI.Responses/src/OpenAI.Responses.csproj
63lines · modecode
| 1 | <Project Sdk="Microsoft.NET.Sdk"> |
| 2 | <PropertyGroup> |
| 3 | <Description>The official .NET library for the OpenAI service API.</Description> |
| 4 | <AssemblyTitle>OpenAI Responses client library for .NET</AssemblyTitle> |
| 5 | |
| 6 | <TargetFrameworks>$(ClientTargetFrameworks)</TargetFrameworks> |
| 7 | <DefineConstants>$(DefineConstants);OPENAI_RESPONSES</DefineConstants> |
| 8 | </PropertyGroup> |
| 9 | |
| 10 | <ItemGroup> |
| 11 | <None Include="$(RepositoryRoot)eng\OpenAI.png" Pack="true" PackagePath="\" /> |
| 12 | <None Include="$(RepositoryRoot)CHANGELOG.md" Pack="true" PackagePath="\" /> |
| 13 | <None Include="$(RepositoryRoot)README.md" Pack="true" PackagePath="\" /> |
| 14 | </ItemGroup> |
| 15 | |
| 16 | <ItemGroup> |
| 17 | <PackageReference Include="System.ClientModel" /> |
| 18 | <PackageReference Include="System.Net.ServerSentEvents" /> |
| 19 | </ItemGroup> |
| 20 | |
| 21 | <ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))"> |
| 22 | <PackageReference Include="System.Diagnostics.DiagnosticSource" /> |
| 23 | </ItemGroup> |
| 24 | |
| 25 | <!-- Build-only dependencies --> |
| 26 | <ItemGroup> |
| 27 | <PackageReference Include="Microsoft.SourceLink.GitHub" /> |
| 28 | </ItemGroup> |
| 29 | |
| 30 | <!-- LEGACY: Azure OpenAI bridge--> |
| 31 | <ItemGroup> |
| 32 | <InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' != 'Unsigned'"> |
| 33 | <PublicKey>0024000004800000940000000602000000240000525341310004000001000100097ad52abbeaa2e1a1982747cc0106534f65cfea6707eaed696a3a63daea80de2512746801a7e47f88e7781e71af960d89ba2e25561f70b0e2dbc93319e0af1961a719ccf5a4d28709b2b57a5d29b7c09dc8d269a490ebe2651c4b6e6738c27c5fb2c02469fe9757f0a3479ac310d6588a50a28d7dd431b907fd325e18b9e8ed</PublicKey> |
| 34 | </InternalsVisibleTo> |
| 35 | <InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' == 'Unsigned'" /> |
| 36 | </ItemGroup> |
| 37 | |
| 38 | <ItemGroup> |
| 39 | <Compile Include="..\..\OpenAI\src\Utility\*.cs" /> |
| 40 | <!-- NOTE: Do NOT include OpenAI/src/Utility/CodeGen/*.cs via cross-project link. |
| 41 | The TypeSpec generator's custom-code Roslyn compilation only scans this |
| 42 | project's directory tree to resolve attributes such as |
| 43 | [CodeGenVisibility]. Files linked from another project are invisible to |
| 44 | that scan, which causes the attribute to be silently ignored. Keep a |
| 45 | copy of CodeGenVisibilityAttribute.cs under this project at |
| 46 | src/Utility/CodeGen/ instead. --> |
| 47 | <!-- <Compile Include="..\..\OpenAI\src\Utility\Telemetry\*.cs" /> --> |
| 48 | <Compile Include="..\..\OpenAI\src\Generated\Internal\*.cs" /> |
| 49 | <!-- Exclude locally generated CodeGen attributes that duplicate the ones included from OpenAI above (same namespace) --> |
| 50 | <Compile Remove="Generated\Internal\CodeGenMemberAttribute.cs" /> |
| 51 | <Compile Remove="Generated\Internal\CodeGenSerializationAttribute.cs" /> |
| 52 | <Compile Remove="Generated\Internal\CodeGenSuppressAttribute.cs" /> |
| 53 | <Compile Remove="Generated\Internal\CodeGenTypeAttribute.cs" /> |
| 54 | <!-- Exclude OpenAI's ClientPipelineExtensions; Responses has its own custom version with matching ProcessMessage extensions --> |
| 55 | <Compile Remove="..\..\OpenAI\src\Generated\Internal\ClientPipelineExtensions.cs" /> |
| 56 | <!-- Include TelemetryDetails needed by OpenAIClientUtilities --> |
| 57 | <Compile Include="..\..\OpenAI\src\Custom\Internal\TelemetryDetails.cs" /> |
| 58 | </ItemGroup> |
| 59 | |
| 60 | <ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))"> |
| 61 | <Compile Include="..\..\OpenAI\src\Utility\Polyfill\*.cs" /> |
| 62 | </ItemGroup> |
| 63 | </Project> |