Skip to content

publish my app using all those 3 different predefined environment variables #2029

Description

@Rick-Anderson

Cust asks:

Hello folks,
I would like to publish my app using all those 3 different predefined environment variables, but I cannot figure out how to target different environment when creating the publish profile.
Since .net core doesn't support multi version of web.config, I cannot use environmentVariable tag in config file to automate my publish.
I also tried launchSettings.json, everything seems fine in VS and I can run different environment locally. I just want to automate my publish process too, so when I use different publish profile, different environment is targeted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions