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

Remove unnecessary newline at the end of the webapiaot csproj #61302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sander1095
Copy link
Contributor

@sander1095 sander1095 commented Apr 3, 2025

Remove unnecessary newline at the end of the webapiaot csproj

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

This PR removes a lingering newline at the end of the webapiaot csproj

Description

In #60337 I added OpenAPI support to the dotnet new webapiaot template. This adds the Microsoft.AspNetCore.OpenApi package by default.

I just tested this locally by installing the preview4 build. I saw that the .csproj has an extra newline at the end, before the </project> tag. The dotnet new webapi template doesn't have this, which means this is a bit inconsistent

I removed this extra newline in this PR to ensure both templates behave the same way.

Fixes #59564

This brings the template in line with the `dotnet new webapi` one, where there is no lingering newline at the end of the csproj.
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Apr 3, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Apr 3, 2025
Copy link
Contributor

Thanks for your PR, @@sander1095. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@sander1095
Copy link
Contributor Author

Hi @captainsafia ! Perhaps you can have a quick peek at this 1LOC PR change :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"dotnet new webapiaot" should include OpenAPI support
1 participant