swagger-api / swagger-api/swagger-codegen
Server stub aspnetcore solution not opening in Visual Studio 2019
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Server stub aspnetcore solution not opening in Visual Studio 2019
Swagger-codegen version
Swagger Hub - On Prem
Version 1.25.0-56
Swagger declaration file content or url

Command line used for generation
Code generated from UI menu
Steps to reproduce
Generate dotnet server stub <aspnetcore-server-generated.zip>
Extract and open in visual studio 2019: Fails to load project. Screenshot attached
Workaround
- Removed project from solution
- Add the project to the solution
- Close solution
- Save solution on prompt
- Open solution again
- It opens now without error
aspnetcore-server-generated.zip
Related issues/PRs
No
Ref: https://smartbear-cc.force.com/portal/apex/SupPortalCaseEdit?caseId=5005Y00001qOdQoQAK
Suggest a fix/enhancement
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 by extracting aspnetcore-server-generated.zip and opening the generated solution in Visual Studio 2019, following the reproduction steps. Compare the solution and project metadata with the state after removing and re-adding the project. Done means a freshly generated server stub solution opens without the workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100