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

Could not find a part of the path 'C:\MyRepo\MySolution\MyApiClient\45ec2b05c06b4182a172523b42e8b5db\TempApiClient'. #225

Open
icnocop opened this issue Jun 29, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@icnocop
Copy link

icnocop commented Jun 29, 2021

Description
When I try to re-create the REST API client code, I get the following error message:
Could not find a part of the path 'C:\MyRepo\MySolution\MyApiClient\45ec2b05c06b4182a172523b42e8b5db\TempApiClient'.

Support Key: 14a9a75

Steps to reproduce

  1. Create a new C# Class library project which targets .NET Standard 2.0 in Visual Studio 2019
  2. Right-click on project and select Add > New REST API Client > Generate with OpenAPI
  3. Enter URL of swagger.json
  4. Enter Filename: OpenApiClient
  5. Click OK
  6. The error dialog is displayed
  7. Click OK on the error dialog
  8. The REST API client is generated anyway

Expected behavior
I didn't expect the error message to be displayed.
For example, if the directory is required to generate the client code, then it should automatically get created and then deleted after it's no longer needed.

Screenshots
image

Visual Studio Extension (please complete the following information):

  • Visual Studio 2019
  • REST API Client Code Generator 1.2.7037

Additional context
Thank you.

Edit FYI, as a work-around, I'm now using https://devblogs.microsoft.com/aspnet/generating-http-api-clients-using-visual-studio-connected-services/ instead.

@christianhelle christianhelle self-assigned this Jun 30, 2021
@christianhelle christianhelle added the bug Something isn't working label Jun 30, 2021
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