swagger-api / swagger-api/swagger-codegen
[C#] generated SwaggerClient : Missing path separator on solution file (.sln)
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
[C#] generated SwaggerClient : Missing path separator in solution file (.sln)
This line :
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "srcIO.SwaggerIO.Swagger.csproj", "{3AB1F259-1769-484B-9411-84505FCCBD55}"
should be:
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IO.Swagger", "src/IO.Swagger/IO.Swagger.csproj", "{3AB1F259-1769-484B-9411-84505FCCBD55}"
Swagger-codegen version swagger-codegen-3.0.3
Swagger declaration file content or url
Swagger declaration file cannot be provided (Used for industrial project)
Command line used for generation
set executable="C:\swagger-codegen-3.0.3\modules\swagger-codegen-cli\target\swagger-codegen-cli.jar"
If Not Exist %executable% (
mvn clean package
)
set JAVA_OPTS=%JAVA_OPTS% -Xmx1024M
set ags=generate -i D-1848-001-003_SyCtrlHsl_ControlAPI_1.0.0.yaml -l csharp -o SwaggerClient --additional-properties targetFramework=v4.5,packageGuid={3AB1F259-1769-484B-9411-84505FCCBD55}
java %JAVA_OPTS% -jar %executable% %ags%
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 from the C# generator output and the generated IO.Swagger.sln shown in the report; reproduce generation with swagger-codegen 3.0.3 and the provided command. Compare the Project entry's path with the expected src/IO.Swagger/IO.Swagger.csproj path, and consider the issue done when generated solution files contain the correct separators.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100