openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.0.0-beta.7

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/OpenAI.csproj

71lines · modecode

1<Project Sdk="Microsoft.NET.Sdk">
2 <PropertyGroup>
3 <Description>This is the OpenAI client library for developing .NET applications with rich experience.</Description>
4 <AssemblyTitle>SDK Code Generation OpenAI</AssemblyTitle>
5 <PackageTags>OpenAI</PackageTags>
6
7 <VersionPrefix>2.0.0</VersionPrefix>
8 <VersionSuffix>beta.7</VersionSuffix>
9
10 <TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
11 <LangVersion>latest</LangVersion>
12
13 <!-- Sign the assembly with the specified key file. -->
14 <SignAssembly>true</SignAssembly>
15 <AssemblyOriginatorKeyFile>OpenAI.snk</AssemblyOriginatorKeyFile>
16
17 <!-- Generate an XML documentation file for the project. -->
18 <GenerateDocumentationFile>true</GenerateDocumentationFile>
19
20 <!-- Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
21 <PublishRepositoryUrl>true</PublishRepositoryUrl>
22 <PackageIcon>OpenAI.png</PackageIcon>
23 <PackageReadmeFile>README.md</PackageReadmeFile>
24
25 <!-- Create a .snupkg file in addition to the .nupkg file. -->
26 <IncludeSymbols>true</IncludeSymbols>
27 <SymbolPackageFormat>snupkg</SymbolPackageFormat>
28
29 <!-- Embed source files that are not tracked by the source control manager in the PDB -->
30 <EmbedUntrackedSources>true</EmbedUntrackedSources>
31
32 <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
33
34 <!-- Disable missing XML documentation warnings -->
35 <NoWarn>$(NoWarn),1570,1573,1574,1591</NoWarn>
36
37 <!-- Disable obsolete warnings -->
38 <NoWarn>$(NoWarn),0618</NoWarn>
39
40 <!-- Disable unused fields warnings -->
41 <NoWarn>$(NoWarn),0169</NoWarn>
42 </PropertyGroup>
43
44 <PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
45 <!-- Allow use of unsafe code, for System.Net.ServerSentEvents polyfill on netstandard2.0
46 TODO https://github.com/openai/openai-dotnet/issues/41: Remove once polyfill for
47 System.Net.ServerSentEvents is removed in favor of referencing the package -->
48 <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
49 </PropertyGroup>
50
51 <PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
52 <!-- Normalize stored file paths in symbols when in a CI build. -->
53 <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
54 </PropertyGroup>
55
56 <ItemGroup>
57 <None Include="OpenAI.png" Pack="true" PackagePath="\" />
58 <None Include="..\README.md" Pack="true" PackagePath="\" />
59 </ItemGroup>
60
61 <ItemGroup>
62 <PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
63 <PackageReference Include="System.ClientModel" Version="1.1.0-beta.4" />
64 </ItemGroup>
65
66 <ItemGroup>
67 <InternalsVisibleTo Include="Azure.AI.OpenAI">
68 <PublicKey>0024000004800000940000000602000000240000525341310004000001000100097ad52abbeaa2e1a1982747cc0106534f65cfea6707eaed696a3a63daea80de2512746801a7e47f88e7781e71af960d89ba2e25561f70b0e2dbc93319e0af1961a719ccf5a4d28709b2b57a5d29b7c09dc8d269a490ebe2651c4b6e6738c27c5fb2c02469fe9757f0a3479ac310d6588a50a28d7dd431b907fd325e18b9e8ed</PublicKey>
69 </InternalsVisibleTo>
70 </ItemGroup>
71</Project>
72