Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing Openai-dotnet to a .NET Standard project gives error #22

Closed
cjkarande opened this issue Jun 7, 2024 · 6 comments
Closed
Labels
bug Something isn't working question Further information is requested

Comments

@cjkarande
Copy link

cjkarande commented Jun 7, 2024

Installing Openai-dotnet package to a .NET Standard 2.0 project gives following error

NU1108: Cycle detected.
OpenAI -> OpenAI (>= 2.0.0-beta.2).
Package restore failed. Rolling back package changes for 'OpenAI'.

It is detecting some cyclic dependency

@trrwilson
Copy link
Collaborator

Hello, @cjkarande! Can you share a bit more on how you set up the netstandard2.0 project to reproduce this? Creating a new one myself just now (dotnet new console, dotnet add package OpenAI --prerelease, modify .csproj for <TargetFramework>netstandard2.0</TargetFramework>), I see restore and build working as intended. Is there more detail about the reported cycle in the output?

@trrwilson trrwilson added bug Something isn't working question Further information is requested labels Jun 7, 2024
@Petermarcu
Copy link
Collaborator

@cjkarande do you have another version of this package OpenAI or another package that references the older version of this package included in the project? We're going to need more information about what else is in your package graph in order to be helpful.

@cjkarande
Copy link
Author

@trrwilson sorry for the incomplete info. I am trying to install it in a .Net Standard 2.0 project which is part of Xamarin.Forms Mobile App solution. I am not using a Console App

@Petermarcu I am installing this package for the 1st time in a newly created Xamarin.Forms project.

@Petermarcu
Copy link
Collaborator

That is strange. The cycle has nothing in the middle, it just says the package is referencing itself. How are you adding the reference? Can you share what's in your csproj?

@Petermarcu
Copy link
Collaborator

Does your project happen to also be named OpenAI?

@cjkarande
Copy link
Author

cjkarande commented Jun 8, 2024

Superb @Petermarcu, that was the problem....Thanks a ton for your lighting fast response

Does your project happen to also be named OpenAI?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants