Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #3682
Closed
Open
Issue created Aug 19, 2019 by Administrator@rootContributor5 of 6 checklist items completed5/6 checklist items

[BUG] [csharp-netcore]: Failing to load the project

Created by: saigiridhar21

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description
  • Visual studio is failing to load the SDK client project which is generated for netstandard2.0.
  • netcoreapp's test project is missing xunit related dependencies.
  • When no targetFramework is provided, openapi-generator is picking v4.6.1 as default. It should be netstandard2.0.
  • Removed the hard-coded paths of NETStandard.Library.2.0.3 in the csproj files.
openapi-generator version

4.1.0

OpenAPI declaration file content or url
Command line used for generation

Use PetStore project to check.

Steps to reproduce

Open Petstore project(generated for netstandard2.0) on visual studio and it will fail to load the client project stating that it needs migration.

Related issues/PRs
Suggest a fix
  • Fix the Project.mustache as per the standards of netstandard.
  • Fix the netcoreapp's test project to include xunit related dependencies.
  • Update the default value to netstandard2.0 when user doesn't provide targetFramework option.
Assignee
Assign to
Time tracking