Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS Build Queries for Non .NET supported files

Tags:

tfs

tfsbuild

We are using TFS for maintain file versions of our database.

We do not have any .NET application in our Source Control; only HTML and supported CSS files only.

Is it possible through TFS Build Automation process to create Zip package and Deploy the package to drop location?

Note: We Do not have any .NET project or solutions only need to deploy folder(with HTML and supported files) in zip format.

I somewhere read that TFS build definition compulsorily needs .SLN files to have build project.

We don't want to build anything or test anything Just want to create zip and deploy same to drop location.

I have tried some tweaking of Build Definition. But in New Build definition in process tab it asks me for Items to build, where my selection is restricted to .NET supported files only.

like image 396
Ashish Sapkale Avatar asked Dec 12 '25 09:12

Ashish Sapkale


1 Answers

You will need to create a custom MSBuild project file (.proj) to perform the work that you need. You can test this file locally in the command line and then when it is ready, you can point the Build process at it.

This is a good starting point for you http://www.developerfusion.com/article/84411/customising-your-build-process-with-msbuild/

The MSBuild Community Tasks (https://github.com/loresoft/msbuildtasks) contains a Zip task which should make the job a lot easier.

like image 140
gregpakes Avatar answered Dec 16 '25 08:12

gregpakes