swagger-api / swagger-api/swagger-codegen
Can't add RestSharp
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I saw an error that the namespace RestSharp could not be found. So I went to manage the NuGet packages and noticed that the packages need to updated. I updated it and the error messages didn't go away. So I tried to remove the RestSharp package and re-add it. I try to add it and there are no error messages when I "install" but I look at the packages installed and I don't see RestSharp being installed. The error messages have not dissappeared.
For example:
Error CS0246 The type or namespace name 'RestSharp' could not be found (are you missing a using directive or an assembly reference?) IO.Swagger C:\Users\RKevi\Downloads\csharp-client-generated\src\IO.Swagger\Api\AccountingCodesApi.cs 15 Active
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the generated client file src/IO.Swagger/Api/AccountingCodesApi.cs, especially line 15 where the RestSharp namespace error appears. Reproduce the package installation and build steps, then trace the generated client's dependency setup; done means RestSharp is present and the client builds without CS0246 errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 24/100