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

Unable to install Microsoft.CSharp version 4.5.0 #1006

Open
benjavalero opened this issue Sep 27, 2024 · 1 comment
Open

Unable to install Microsoft.CSharp version 4.5.0 #1006

benjavalero opened this issue Sep 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@benjavalero
Copy link

The OpenApi generation fails at the moment of installing the necessary dependencies, in particular when trying to install the package Microsoft.CSharp:

Unable to install Microsoft.CSharp version 4.5.0

This happens because my project already contains a dependency which depends on a higher version. In particular:

<PackageReference Include="AutoMapper" Version="10.1.1" />

depends on:

<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />

I wonder if it would be possible not trying to install a package if it already exists with a higher version.

@christianhelle christianhelle self-assigned this Sep 27, 2024
@christianhelle christianhelle added the bug Something isn't working label Sep 27, 2024
@christianhelle
Copy link
Owner

christianhelle commented Sep 27, 2024

@benjavalero thanks for taking the time to report this

I hadn't thought much about transitive dependencies when I built the feature, and I mostly test and verify this on empty projects.

I'll see what I can do.

As a workaround, you can disable Automatically install missing NuGet packages until I figure out a better solution
image

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

No branches or pull requests

2 participants