Development
Win32
Release
Win32
Development
x64
Release
x64
{257FD75C-4D17-4A23-A754-23BFD85887A0}
Win32Proj
version
version
StaticLibrary
false
Unicode
$(SolutionDir)$(Platform)\$(Configuration)\
$(SolutionDir)$(Platform)\$(Configuration)\obj\$(ProjectName)\
Level3
Disabled
Windows
WIN64;%(PreprocessorDefinitions)
$([MSBuild]::Unescape("$(DevEnvDir)\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\LibGit2Sharp.dll"))
$([MSBuild]::Unescape("$(VSInstallDir)\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\LibGit2Sharp.dll"))
{
if (args.Name.Contains("LibGit2Sharp")) {
return System.Reflection.Assembly.LoadFrom(LibGit2SharpAssemblyPath);
}
return null;
};
GetCommit();
return !Log.HasLoggedErrors;
}
private void GetCommit() {
try {
Sha1 = (new LibGit2Sharp.Repository(Repository)).Commits.First().Id.Sha;
} catch(LibGit2Sharp.RepositoryNotFoundException) {
}
}
[Microsoft.Build.Framework.Required] public string Repository { get; set; }
[Microsoft.Build.Framework.Required] public string LibGit2SharpAssemblyPath { get; set; }
[Microsoft.Build.Framework.Output] public string Sha1 { get; set; }
}
}
]]>
= 0) {
refGITpath = dotGITpath.Substring(0, index+4);
}
}
}
string HEADpath = dotGITpath + "\\HEAD";
if(File.Exists(HEADpath)) {
string HEADref = File.ReadAllText(HEADpath).Trim();
if(HEADref.StartsWith("ref: ")) {
string refpath = refGITpath + "\\" + HEADref.Substring(5).Replace('/', '\\');
if(File.Exists(refpath))
Sha1 = File.ReadAllText(refpath).Trim();
} else {
Sha1 = HEADref;
}
}
}
[Microsoft.Build.Framework.Required] public string Repository { get; set; }
[Microsoft.Build.Framework.Output] public string Sha1 { get; set; }
}
}
]]>
true
GIT_COMMIT_HASH="$(CommitId)";%(PreprocessorDefinitions)
GIT_COMMIT_HASH="$(CommitId)";%(PreprocessorDefinitions)