swagger-api / swagger-api/swagger-codegen

[Csharp] cannot generate csproj in new format

Open
#11,013 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I am generating .NET project successfully that fits into the existing solution that targets .net 4.8. The problem is that code
generated by codegen targets .NET Framework 4.5 and uses old csproj format.
I am aware that I can migrate to a new .csproj format (https://caraulean.com/2018/migrating-to-new-csproj-format/) but I am wondering if I can generate code in a new format?
I could not find this option in the specification - so is it possible at all?

Swagger-codegen version

swagger-codegen-cli-3.0.24

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the generated project with swagger-codegen-cli-3.0.24 and compare its .NET Framework 4.5, old-format csproj output with the requested modern format. Determine whether the C# generator has an existing option or documented entry point for project-file generation; done means a defined, tested way to generate the requested format or a documented limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.