Skip to content

Commit c01ca5d

Browse files
stephentoubjsquire
andauthored
Replace polyfill for System.Net.ServerSentEvents with real package (#693)
* Replace polyfill for System.Net.ServerSentEvents with real package * Bump to latest package patch --------- Co-authored-by: Jesse Squire <[email protected]>
1 parent 0e94b9d commit c01ca5d

File tree

2 files changed

+1
-630
lines changed

2 files changed

+1
-630
lines changed

src/OpenAI.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@
6262
<InternalsVisibleTo Include="Azure.AI.OpenAI" Condition="'$(Configuration)' == 'Unsigned'" />
6363
</ItemGroup>
6464

65-
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
66-
<!-- Allow use of unsafe code, for System.Net.ServerSentEvents polyfill on netstandard2.0
67-
TODO https://github.com/openai/openai-dotnet/issues/41: Remove once polyfill for
68-
System.Net.ServerSentEvents is removed in favor of referencing the package -->
69-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
70-
</PropertyGroup>
71-
7265
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
7366
<!-- Normalize stored file paths in symbols when in a CI build. -->
7467
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
@@ -82,6 +75,7 @@
8275
<ItemGroup>
8376
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
8477
<PackageReference Include="System.ClientModel" Version="1.7.0" />
78+
<PackageReference Include="System.Net.ServerSentEvents" Version="9.0.9" />
8579
</ItemGroup>
8680

8781
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">

0 commit comments

Comments
 (0)