openai / openai-dotnet

The official .NET library for the OpenAI API
https://www.nuget.org/packages/OpenAI
MIT License
707 stars 60 forks source link

Remove net6.0 multitarget for improved compatibility #98

Open trrwilson opened 2 days ago

trrwilson commented 2 days ago

As described at: https://github.com/Azure/azure-sdk-for-net/issues/44709

These problems are specific to using the OpenAI library via an intermediate class library targeting netstandard2.0; in that case, the multi-target is causing the executing project to pick up the uplevel framework target that's incompatible with downlevel intermediate library.

Although there may be other approaches to mitigate, it seems reasonable to not expressly multi-target net6.0 if netstandard2.0 is sufficient.