Including empty folders in tfs build -


our c# solution has couple of folders populated via post-build events (i.e. empty).

the solution builds fine locally, when using tfs build agent, folders don't show in published websites folder.

any suggestions on how force tfs copy folders over?

this addressed here: publish empty directories web application in vs2010 web project

tfs not execute afterbuild target of proj file. believe execute aftercompile target still might not want.

i have used approach of including dummy files simple enough though lame.

i've tried approach of including powershell script post-publish tasks works.

more have adopted convention of including supplemental msbuild file ends in ".package.proj" , added additional msbuild execution activity team build template looks after files dropped drop location , executes it. provides simple hook team build workflow without getting deep changing workflow particular build. it's single additional activity wrapped in conditional looks file. if found, execute it.

you make custom build template , use workflow activities perform various cleanup tasks, it's overkill , increase maintenance on build templates. better keep customization simple if can , have function in way doesn't require "opt-out" configuration on builds don't require customization. existing vanilla builds should continue work expected after customization template.


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -