Forum Discussion

DarrenMArdex's avatar
DarrenMArdex
Copper Contributor
Oct 06, 2022
Solved

ASP.NET Bundling + CI/CD - how to handle when a bundled file is deleted or renamed

We are using Azure DevOps to run a CI/CD pipeline to our various environments. We recently encountered an issue where one of the developers re-named a TypeScript file - perfectly reasonable thing to ...
  • Lohith_GN's avatar
    Lohith_GN
    Oct 07, 2022
    Thanks for the details.

    Take a look at the task documentation here: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/iisweb-app-deployment-on-machine-group-v0?view=azure-pipelines

    It has a flag called RemoveAdditionalFilesFlag. Its a boolean flag. According to the flag description from documentation - it is supposed to "Remove Additional Files at Destination". By default the value for this flag is false. So the deployment wont remove any additional files present on the server that was not present in the currently deployed deployment.

    I believe this is the flag you are looking for.

    Let me know If this works for you.

    Hope this helps you.

Resources