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

issue with code generation using rider #5091

Open
mjolivet-lucca opened this issue Jan 16, 2025 · 0 comments
Open

issue with code generation using rider #5091

mjolivet-lucca opened this issue Jan 16, 2025 · 0 comments

Comments

@mjolivet-lucca
Copy link

mjolivet-lucca commented Jan 16, 2025

I try to generate a c# client based on a swagger json file.

To do it, I use NSwag.ApiDescription.Client

When doing it the first time, a file is generated, but on consecutive updates, the client is not updated.
If I delete the file, it is not regenerated on build, even if I do dotnet build in a console.

Version used
NSwag.ApiDescription.Client Version=14.2.0

To Reproduce

To be able to regenerate again the client, I have to :

  • empty the nuget cache
  • there is a directory which still has data in it (C:\Users\[USER]\.nuget\packages), so I go in it
  • there is a folder microsoft.extensions.apidescription.client which cannot be deleted since a dll is used (C:\Users\[USER]\.nuget\packages\microsoft.extensions.apidescription.client\6.0.3\tasks\netstandard2.0\Microsoft.Extensions.ApiDescription.Client.dll)
  • I close rider
  • I delete the dll
  • I open rider
  • the nuggets packages are restored, and the client is automatically regenerated

Expected behavior

the client should always be regenerated on build.

Additional context

/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant