Base solution for your next web application
Open Closed

CI/CD AzureDevops and appconfig.json issue #8344


User avatar
1
joe704la created

I am using Angular version on 8.1.0. .NET Core 3.1

I am trying to figure out how to setup an automated release and have it not overwrite my appconfig.production.json. I also am trying to setup a test site for QA purposes but not sure how I can make sure the correct config files are within the automated builds and releases as it just overwrites the files once it pushes the release.

Any help would be great. Thank you


3 Answer(s)
  • User Avatar
    1
    joe704la created

    I think I may have found an answer to my own question. But I won't be able to verify it until much later. Incase anyone else has tried it let me know if this has worked for others.

    Use the following task in the release pipeline to swap out variables in Json files. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/file-transform?view=azure-devops

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @joe704la

    Sorry for our late reply. I haven't used this but it seems like a valid approach.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please create a new issue if you are still having this problem.