Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.
/ GitMSBuildTasks Public archive

MSBuild Tasks that can interact with a Git Repository

Notifications You must be signed in to change notification settings

kumichou/GitMSBuildTasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitMSBuildTasks

A set of MSBuild tasks that allow you to interact with a Git Repository. Initially, querying tags & commits will be supported.

Basic Usage

In your MSBuild file: <UsingTask AssemblyFile=“(RelativePathTo)GitMSBuildTasks.dll” TaskName=“GitMSBuildTasks.GitCommitInfo”/>

To find a particular Commit based on the hash. The LocalPath should point to where the .git directory is on the file system that you want to query.

The LastTag* Properties are based on the last tag that is closest prior to the Commit you are starting from.

<GitCommitInfo CommitHash=“$(GitCommitHash)” LocalPath=“$.git"> <Output TaskParameter=”LastCommitHash“ PropertyName=”LastCommitHash“ /> <Output TaskParameter=”LastCommitMessage“ PropertyName=”LastCommitMessage“ /> <Output TaskParameter=”RevisionCount“ PropertyName=”RevisionCount“ /> <Output TaskParameter=”LastTagName“ PropertyName=”LastTagName“ /> <Output TaskParameter=”LastTagMessage“ PropertyName=”LastTagMessage“ /> <Output TaskParameter=”LastTagCommitHash“ PropertyName=”LastTagCommitHash“ /> </GitCommitInfo>

About

MSBuild Tasks that can interact with a Git Repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages