简体   繁体   中英

Azure Devops - Build project, delete some files and zip a folder

I'm starting on Azure Devops.

With Azure Devops, how can I delete some files after the solution build and before generate a zip file, but all this in the same step?

In the image step, do the solution build and generate a zip with the package, ready to deploy, but I need delete some files inside this zip file.

MSBuild process print screen with arguments:

带有参数的 MSBuild 进程打印屏幕

Zip file with all files to be deployed in the server and the zip that I need delete some files:

包含要部署在服务器中的所有文件的 Zip 文件以及我需要删除一些文件的 zip

Maybe I will need unzip the package, delete the files and zip the package?

This MSBuild task will build project with MSBuild. And reviewing this doc: MSBuild Properties we find that currently there is no such argument implementing this feature.

In the meanwhile, we find this doc guides how to exclude Files and Folders from a Web Package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM