Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating MsBuild with Git

Tags:

git

msbuild

Im looking for way to integrate MsBuild scripts with Git source control. The first thing I would like to make is to create Task that creates Git Tag at sources.

MsBuild Comunity Tasks looks like doesn't have any support for Git. Any ideas how to connect these two is much appreciated.

like image 825
Dariusz Avatar asked May 31 '11 22:05

Dariusz


2 Answers

Depending what you are doing and if you want to keep it simple, just use the Exec task to call the appropriate git command, like git tag

You can otherwise look at extending MSBuild and write tasks that make use of these git commands or you can make use of GitSharp

like image 117
manojlds Avatar answered Nov 17 '22 03:11

manojlds


For anyone coming here a few years after the original question, you can now find git task support in MSBuild.Community.Tasks

https://github.com/loresoft/msbuildtasks/tree/master/Source/MSBuild.Community.Tasks/Git

like image 23
Stuart Avatar answered Nov 17 '22 03:11

Stuart