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

Microsoft.extensions.api description.server allow specifying environment #55836

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MattyLeslie
Copy link
Contributor

@MattyLeslie MattyLeslie commented May 22, 2024

Add Support for Specifying Environment During Swagger Generation with OpenApiGenerateEnvironment MSBuild Property

This pull request adds support for specifying the environment used during Swagger document generation in ASP.NET Core projects. By introducing the OpenApiGenerateEnvironment MSBuild property, users can control the environment configuration used when generating Swagger documentation during the build process.

Changes made:

  1. Introduced OpenApiGenerateEnvironment MSBuild Property
  2. Modified MSBuild Targets

Fixes #54698

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label May 22, 2024
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 22, 2024
Copy link
Contributor

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

@MattyLeslie MattyLeslie marked this pull request as ready for review May 22, 2024 14:25
@mkArtakMSFT mkArtakMSFT added area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates and removed area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI labels May 24, 2024
Copy link
Contributor

Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime.
To make sure no conflicting changes have occurred, please rerun validation before merging. You can do this by leaving an /azp run comment here (requires commit rights), or by simply closing and reopening.

@dotnet-policy-service dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Jun 1, 2024
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 pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Microsoft.Extensions.ApiDescription.Server: Allow specifying --environment
3 participants