简体   繁体   中英

How to include deployment files with a TFS build

After my TFS build completes, I need to run a couple of .bat files to rename/copy files so that the package is ready for a particular environmeent.

I've included these in one of my class library projects so they set to them "copy if newer", but idealy, I would like to include these in a Solution Items folder. However when I add them to the solution items folder, I can't set them to "copy if newer" so they don't end up in my build output folder.

Where do other people store these files?

Keeping them in a solution folder is a reasonable approach. You can edit the *.*proj file for your library project to copy the files you need by using the MSBuild Copy Task .

Add a folder to your Visual Studio projects called "Deployment" and set the Copy to Output Directory attribute accordingly.

You'll also then know which deployment artifacts belong to each component.

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