openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.1.0-beta.2

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/OpenAI.csproj

82lines · 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.1.0</VersionPrefix>
10 <VersionSuffix>beta.2</VersionSuffix>
11
12 <TargetFrameworks>netstandard2.0;net6.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 </PropertyGroup>
46
47 <PropertyGroup Condition="'$(Configuration)' != 'Unsigned'">
48 <!-- Sign the assembly with the specified key file. -->
49 <SignAssembly>true</SignAssembly>
50 <AssemblyOriginatorKeyFile>OpenAI.snk</AssemblyOriginatorKeyFile>
51 </PropertyGroup>
52
53 <ItemGroup>
54 <InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' != 'Unsigned'">
55 <PublicKey>0024000004800000940000000602000000240000525341310004000001000100097ad52abbeaa2e1a1982747cc0106534f65cfea6707eaed696a3a63daea80de2512746801a7e47f88e7781e71af960d89ba2e25561f70b0e2dbc93319e0af1961a719ccf5a4d28709b2b57a5d29b7c09dc8d269a490ebe2651c4b6e6738c27c5fb2c02469fe9757f0a3479ac310d6588a50a28d7dd431b907fd325e18b9e8ed</PublicKey>
56 </InternalsVisibleTo>
57 <InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' == 'Unsigned'" />
58 </ItemGroup>
59
60 <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
61 <!-- Allow use of unsafe code, for System.Net.ServerSentEvents polyfill on netstandard2.0
62 TODO https://github.com/openai/openai-dotnet/issues/41: Remove once polyfill for
63 System.Net.ServerSentEvents is removed in favor of referencing the package -->
64 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
65 </PropertyGroup>
66
67 <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
68 <!-- Normalize stored file paths in symbols when in a CI build. -->
69 <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
70 </PropertyGroup>
71 <ItemGroup>
72 <None Include="OpenAI.png" Pack="true" PackagePath="\" />
73 <None Include="..\CHANGELOG.md" Pack="true" PackagePath="\" />
74 <None Include="..\README.md" Pack="true" PackagePath="\" />
75 </ItemGroup>
76
77 <ItemGroup>
78 <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
79 <PackageReference Include="System.ClientModel" Version="1.2.1" />
80 <PackageReference Include="System.Diagnostics.DiagnosticSource" Version="6.0.1" />
81 </ItemGroup>
82</Project>
83