diff --git a/src/GitInfo/build/GitInfo.targets b/src/GitInfo/build/GitInfo.targets index 1136da4..535d0dd 100644 --- a/src/GitInfo/build/GitInfo.targets +++ b/src/GitInfo/build/GitInfo.targets @@ -1,857 +1,859 @@ - - - - - - - GitInfo.txt - - $(MSBuildProjectDirectory) - - $([MSBuild]::GetDirectoryNameOfFileAbove($(GitInfoBaseDir), $(GitVersionFile)))\$(GitVersionFile) - - master - 0000000 - 0.1.0 - - $(IntermediateOutputPath)ThisAssembly.GitInfo.g$(DefaultLanguageSourceExtension) - false - true - low - ADDMETADATA - NOMETADATA - - - 0 - MSBuild - - false - $(GitSkipCache) - $(GitSkipCache) - - - - - - GitInfo; - GitVersion; - GitThisAssembly; - GitInfoReport; - $(CoreCompileDependsOn) - - - <_GitBaseVersionExpr Condition="'$(_GitBaseVersionExpr)' == ''">^v?(?<MAJOR>\d+)\.(?<MINOR>\d+)\.(?<PATCH>\d+)(?:\-(?<LABEL>[\dA-Za-z\-\.]+))?$|^(?<LABEL>[\dA-Za-z\-\.]+)\-v?(?<MAJOR>\d+)\.(?<MINOR>\d+)\.(?<PATCH>\d+)$ - - <_GitInfoFile>$(IntermediateOutputPath)GitInfo.cache - - - - - - - - - _GitRoot; - _GitInputs; - _GitClearCache; - _GitReadCache; - _GitBranch; - _GitCommit; - _GitPopulateInfo; - - - - - <_ShortShaFormat>%%h - <_LongShaFormat>%%H - - - <_ShortShaFormat>%h - <_LongShaFormat>%H - - - - - - - - - - - - - $(_GitOutput.Trim()) - - - - - - - - - - $(_GitOutput.Trim()) - - - - - $([System.IO.Path]::Combine('$(GitRoot)', '.git')) - <_IsGitFile>$([System.IO.File]::Exists('$(GitDir)')) - - - - - - - - - <_IsGitWorkTree>$(_GitIsWorkTree.Trim()) - - - - - - - - - $(_GitCommonDir) - - - - <_GitFileContents>$([System.IO.File]::ReadAllText('$(GitDir)')) - $([System.String]::new('$(_GitFileContents)').Substring(7).Trim()) - $([System.IO.Path]::Combine('$(GitRoot)', '$(GitDir)')) - $([System.IO.Path]::GetFullPath('$(GitDir)')) - - - $(GitDir)$([System.IO.Path]::DirectorySeparatorChar) - - - - - - - - - - - - - - <_GitInput Include="$(GitDir)HEAD" /> - <_GitInput Include="$(GitVersionFile)" Condition="Exists('$(GitVersionFile)')" /> + + + + + + + GitInfo.txt + + $(MSBuildProjectDirectory) + + $([MSBuild]::GetDirectoryNameOfFileAbove($(GitInfoBaseDir), $(GitVersionFile)))\$(GitVersionFile) + + master + 0000000 + 0.1.0 + + $(IntermediateOutputPath)ThisAssembly.GitInfo.g$(DefaultLanguageSourceExtension) + false + true + low + ADDMETADATA + NOMETADATA + + + 0 + MSBuild + + false + $(GitSkipCache) + $(GitSkipCache) + + + + + + GitInfo; + GitVersion; + GitThisAssembly; + GitInfoReport; + $(CoreCompileDependsOn) + + + <_GitBaseVersionExpr Condition="'$(_GitBaseVersionExpr)' == ''">^v?(?<MAJOR>\d+)\.(?<MINOR>\d+)\.(?<PATCH>\d+)(?:\-(?<LABEL>[\dA-Za-z\-\.]+))?$|^(?<LABEL>[\dA-Za-z\-\.]+)\-v?(?<MAJOR>\d+)\.(?<MINOR>\d+)\.(?<PATCH>\d+)$ + + <_GitInfoFile>$(IntermediateOutputPath)GitInfo.cache + + + + + + + + + _GitRoot; + _GitInputs; + _GitClearCache; + _GitReadCache; + _GitBranch; + _GitCommit; + _GitPopulateInfo; + + + + + <_ShortShaFormat>%%h + <_LongShaFormat>%%H + + + <_ShortShaFormat>%h + <_LongShaFormat>%H + + + + + + + + + + + + + $(_GitOutput.Trim()) + + + + + + + + + + $(_GitOutput.Trim()) + + + + + $([System.IO.Path]::Combine('$(GitRoot)', '.git')) + <_IsGitFile>$([System.IO.File]::Exists('$(GitDir)')) + + + + + + + + + <_IsGitWorkTree>$(_GitIsWorkTree.Trim()) + + + + + + + + + $(_GitCommonDir) + + + + <_GitFileContents>$([System.IO.File]::ReadAllText('$(GitDir)')) + $([System.String]::new('$(_GitFileContents)').Substring(7).Trim()) + $([System.IO.Path]::Combine('$(GitRoot)', '$(GitDir)')) + $([System.IO.Path]::GetFullPath('$(GitDir)')) + + + $(GitDir)$([System.IO.Path]::DirectorySeparatorChar) + + + + + + + + + + + + + + <_GitInput Include="$(GitDir)HEAD" /> + <_GitInput Include="$(GitVersionFile)" Condition="Exists('$(GitVersionFile)')" /> - - - - - - - - - - - - - - - - - - - <_GitCachedInfo>$([System.IO.File]::ReadAllText('$(_GitInfoFile)')) - - - - - - - - %(GitInfo.GitBranch) - %(GitInfo.GitCommit) - %(GitInfo.GitSha) - %(GitInfo.GitBaseVersion) - %(GitInfo.GitBaseVersionSource) - %(GitInfo.GitBaseVersionMajor) - %(GitInfo.GitBaseVersionMinor) - %(GitInfo.GitBaseVersionPatch) - %(GitInfo.GitCommits) - %(GitInfo.GitTag) - %(GitInfo.GitBaseTag) - %(GitInfo.GitSemVerMajor) - %(GitInfo.GitSemVerMinor) - %(GitInfo.GitSemVerPatch) - %(GitInfo.GitSemVerLabel) - %(GitInfo.GitSemVerDashLabel) - %(GitInfo.GitSemVerSource) - - - - - - - <_GitHead>$([System.IO.Path]::Combine($(GitDir), 'HEAD')) - <_GitHead>$([System.IO.Path]::GetFullPath($(_GitHead))) - <_GitHead>$([System.IO.File]::ReadAllText('$(_GitHead)')) - $([System.Text.RegularExpressions.Regex]::Match($(_GitHead), '(?<=refs/heads/).+$')) - $(GitBranch.Trim()) - - - - - - - - - $(GitDefaultBranch) - - - - - - - - - - - - - $(GitDefaultCommit) - - - - - - - - - $(GitDefaultCommit) - - - - - - - - $(GitRoot) - $(GitBranch) - $(GitCommit) - - - - - - - GitInfo; - _GitBaseVersionBranch; - _GitBaseVersionTagExists; - _GitBaseVersionTag; - _GitBaseVersionFile; - _GitBaseVersionFallback; - _GitValidateBaseVersion; - _GitPopulateVersionInfo; - _GitWriteCache - - - - - - - - - $([System.IO.File]::ReadAllText('$(GitVersionFile)')) - $(GitBaseVersion.Trim()) - - $([System.Text.RegularExpressions.Regex]::IsMatch($(GitBaseVersion), $(_GitBaseVersionExpr))) - - $(IsValidGitBaseVersion.Trim()) - - - - - - <_GitVersionFile>$(GitVersionFile) - $(GitVersionFile) - File - - - - - - - - - - - - - - - - - - - 0 - <_GitLastBump>$(_GitLastBump.Trim()) - - <_GitCommitsRelativeTo Condition="'$([System.IO.Path]::GetDirectoryName($(GitVersionFile)))' != ''">"$([System.IO.Path]::GetDirectoryName("$(GitVersionFile)"))" - - <_GitCommitsRelativeTo Condition="'$([System.IO.Path]::GetDirectoryName($(GitVersionFile)))' == ''">. - - - - - - - - - - - - - - - - - - - - $([System.Text.RegularExpressions.Regex]::IsMatch($(GitBranch), $(_GitBaseVersionExpr))) - - $(IsValidGitBaseVersion.Trim()) - - - - - - $(GitBranch) - GitBranch - Branch - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - $([System.Text.RegularExpressions.Regex]::IsMatch($(GitBaseTag), $(_GitBaseVersionExpr))) - - $(IsValidGitBaseVersion.Trim()) - - $(GitBaseTag) - - - - - - GitBaseTag - Tag - 0 - - - - - - - - - - - - - - - - 0 - - - - - - - - - $([System.Text.RegularExpressions.Regex]::IsMatch($(GitDefaultVersion), $(_GitBaseVersionExpr))) - - $(IsValidGitDefaultVersion.Trim()) - - - - - - - $(GitDefaultVersion) - Default - 0 - - - - - - - - - - - - $([System.Text.RegularExpressions.Regex]::IsMatch($(GitBaseVersion), $(_GitBaseVersionExpr))) - - $(IsValidGitBaseVersion.Trim()) - - - - - - - - - - - $(GitBaseVersion.TrimStart('v')) - $(GitBaseVersion.TrimStart('V')) - $([System.Text.RegularExpressions.Regex]::Match($(GitBaseVersion), $(_GitBaseVersionExpr)).Groups['MAJOR'].Value) - $([System.Text.RegularExpressions.Regex]::Match($(GitBaseVersion), $(_GitBaseVersionExpr)).Groups['MINOR'].Value) - $([System.Text.RegularExpressions.Regex]::Match($(GitBaseVersion), $(_GitBaseVersionExpr)).Groups['PATCH'].Value) - $(GitBaseVersionMajor) - $(GitBaseVersionMinor) - $([MSBuild]::Add('$(GitBaseVersionPatch)', '$(GitCommits)')) - $([System.Text.RegularExpressions.Regex]::Match($(GitBaseVersion), $(_GitBaseVersionExpr)).Groups['LABEL'].Value) - -$(GitSemVerLabel) - - - - - $(GitBaseVersion) - $(GitBaseVersionSource) - $(GitBaseVersionMajor) - $(GitBaseVersionMinor) - $(GitBaseVersionPatch) - $(GitCommits) - $(GitTag) - $(GitBaseTag) - $(GitSemVerMajor) - $(GitSemVerMinor) - $(GitSemVerPatch) - $(GitSemVerLabel) - $(GitSemVerDashLabel) - $(GitSemVerSource) - - - - - - - - <_GitInfoContent>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)GitInfo.cache.pp')) - - <_GitInfoContent>$(_GitInfoContent.Replace('$GitBranch$', '$(GitBranch)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitCommits$', '$(GitCommits)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitCommit$', '$(GitCommit)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitSha$', '$(GitSha)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersion$', '$(GitBaseVersion)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersionSource$', '$(GitBaseVersionSource)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersionMajor$', '$(GitBaseVersionMajor)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersionMinor$', '$(GitBaseVersionMinor)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersionPatch$', '$(GitBaseVersionPatch)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitTag$', '$(GitTag)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseTag$', '$(GitBaseTag)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerMajor$', '$(GitSemVerMajor)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerMinor$', '$(GitSemVerMinor)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerPatch$', '$(GitSemVerPatch)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerLabel$', '$(GitSemVerLabel)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerDashLabel$', '$(GitSemVerDashLabel)')) - <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerSource$', '$(GitSemVerSource)')) - - - - <_GitInfoFileDir>$([System.IO.Path]::GetDirectoryName('$(_GitInfoFile)')) - - - - - - - - - - - - - - - GitInfo; - GitVersion; - _GitInputs; - _GitGenerateThisAssembly - - - - - - - - - - - - - - - <_ThisAssemblyContent>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)GitInfo$(DefaultLanguageSourceExtension).pp')) - - - <_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' != ''">$(_ThisAssemblyContent.Replace('$NamespaceDefine$', 'LOCALNAMESPACE')) - <_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' == ''">$(_ThisAssemblyContent.Replace('$NamespaceDefine$', 'GLOBALNAMESPACE')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$MetadataDefine$', '$(GitThisAssemblyMetadataDefine)')) - - <_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' != ''">$(_ThisAssemblyContent.Replace('RootNamespace.', '$(ThisAssemblyNamespace).')) - <_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' == ''">$(_ThisAssemblyContent.Replace('RootNamespace.', '')) - - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('_RootNamespace_', '$(ThisAssemblyNamespace)')) - - - <_ThisAssemblyContent Condition="'$(Language)' == 'C#' And '$(GitRoot)' == ''">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'false')) - <_ThisAssemblyContent Condition="'$(Language)' == 'C#' And '$(GitIsDirty)' == '1'">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'true')) - <_ThisAssemblyContent Condition="'$(Language)' == 'C#' And '$(GitIsDirty)' == '0'">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'false')) - - <_ThisAssemblyContent Condition="'$(Language)' == 'VB' And '$(GitRoot)' == ''">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'False')) - <_ThisAssemblyContent Condition="'$(Language)' == 'VB' And '$(GitIsDirty)' == '1'">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'True')) - <_ThisAssemblyContent Condition="'$(Language)' == 'VB' And '$(GitIsDirty)' == '0'">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'False')) - - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBranch$', '$(GitBranch)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitCommits$', '$(GitCommits)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitCommit$', '$(GitCommit)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSha$', '$(GitSha)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersion$', '$(GitBaseVersion)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersionSource$', '$(GitBaseVersionSource)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersionMajor$', '$(GitBaseVersionMajor)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersionMinor$', '$(GitBaseVersionMinor)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersionPatch$', '$(GitBaseVersionPatch)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitTag$', '$(GitTag)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseTag$', '$(GitBaseTag)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerMajor$', '$(GitSemVerMajor)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerMinor$', '$(GitSemVerMinor)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerPatch$', '$(GitSemVerPatch)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerLabel$', '$(GitSemVerLabel)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerDashLabel$', '$(GitSemVerDashLabel)')) - <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerSource$', '$(GitSemVerSource)')) - - - - $([System.IO.Path]::GetDirectoryName('$(GitInfoThisAssemblyFile)')) - - - - - - - - - - - - - - - - - "C:\Program Files\Git\bin\git.exe" - "C:\Program Files (x86)\Git\bin\git.exe" - C:\msysgit\bin\git.exe - $(MSBuildThisFileDirectory)wslrun.cmd git - C:\cygwin\bin\git.exe - C:\cygwin64\bin\git.exe - - git.exe - - - git - - - - - $(MSBuildThisFileDirectory)wslpath.cmd - C:\cygwin\bin\cygpath.exe - C:\cygwin64\bin\cygpath.exe - - - - - - true - - + + + + + + + + + + + + + + + + + + + <_GitCachedInfo>$([System.IO.File]::ReadAllText('$(_GitInfoFile)')) + + + + + + + + %(GitInfo.GitBranch) + %(GitInfo.GitCommit) + %(GitInfo.GitSha) + %(GitInfo.GitBaseVersion) + %(GitInfo.GitBaseVersionSource) + %(GitInfo.GitBaseVersionMajor) + %(GitInfo.GitBaseVersionMinor) + %(GitInfo.GitBaseVersionPatch) + %(GitInfo.GitCommits) + %(GitInfo.GitTag) + %(GitInfo.GitBaseTag) + %(GitInfo.GitSemVerMajor) + %(GitInfo.GitSemVerMinor) + %(GitInfo.GitSemVerPatch) + %(GitInfo.GitSemVerLabel) + %(GitInfo.GitSemVerDashLabel) + %(GitInfo.GitSemVerSource) + + + + + + + <_GitHead>$([System.IO.Path]::Combine($(GitDir), 'HEAD')) + <_GitHead>$([System.IO.Path]::GetFullPath($(_GitHead))) + <_GitHead>$([System.IO.File]::ReadAllText('$(_GitHead)')) + $([System.Text.RegularExpressions.Regex]::Match($(_GitHead), '(?<=refs/heads/).+$')) + $(GitBranch.Trim()) + + + + + + + + + $(GitDefaultBranch) + + + + + + + + + + + + + $(GitDefaultCommit) + + + + + + + + + $(GitDefaultCommit) + + + + + + + + $(GitRoot) + $(GitBranch) + $(GitCommit) + + + + + + + GitInfo; + _GitBaseVersionBranch; + _GitBaseVersionTagExists; + _GitBaseVersionTag; + _GitBaseVersionFile; + _GitBaseVersionFallback; + _GitValidateBaseVersion; + _GitPopulateVersionInfo; + _GitWriteCache + + + + + + + + + $([System.IO.File]::ReadAllText('$(GitVersionFile)')) + $(GitBaseVersion.Trim()) + + $([System.Text.RegularExpressions.Regex]::IsMatch($(GitBaseVersion), $(_GitBaseVersionExpr))) + + $(IsValidGitBaseVersion.Trim()) + + + + + + <_GitVersionFile>$(GitVersionFile) + $(GitVersionFile) + File + + + + + + + + + + + + + + + + + + + 0 + <_GitLastBump>$(_GitLastBump.Trim()) + + <_GitCommitsRelativeTo Condition="'$([System.IO.Path]::GetDirectoryName($(GitVersionFile)))' != ''">"$([System.IO.Path]::GetDirectoryName("$(GitVersionFile)"))" + + <_GitCommitsRelativeTo Condition="'$([System.IO.Path]::GetDirectoryName($(GitVersionFile)))' == ''">. + + + + + + + + + + + + + + + + + + + + $([System.Text.RegularExpressions.Regex]::IsMatch($(GitBranch), $(_GitBaseVersionExpr))) + + $(IsValidGitBaseVersion.Trim()) + + + + + + $(GitBranch) + GitBranch + Branch + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + $([System.Text.RegularExpressions.Regex]::IsMatch($(GitBaseTag), $(_GitBaseVersionExpr))) + + $(IsValidGitBaseVersion.Trim()) + + $(GitBaseTag) + + + + + + GitBaseTag + Tag + 0 + + + + + + + + + + + + + + + + 0 + + + + + + + + + $([System.Text.RegularExpressions.Regex]::IsMatch($(GitDefaultVersion), $(_GitBaseVersionExpr))) + + $(IsValidGitDefaultVersion.Trim()) + + + + + + + $(GitDefaultVersion) + Default + 0 + + + + + + + + + + + + $([System.Text.RegularExpressions.Regex]::IsMatch($(GitBaseVersion), $(_GitBaseVersionExpr))) + + $(IsValidGitBaseVersion.Trim()) + + + + + + + + + + + $(GitBaseVersion.TrimStart('v')) + $(GitBaseVersion.TrimStart('V')) + $([System.Text.RegularExpressions.Regex]::Match($(GitBaseVersion), $(_GitBaseVersionExpr)).Groups['MAJOR'].Value) + $([System.Text.RegularExpressions.Regex]::Match($(GitBaseVersion), $(_GitBaseVersionExpr)).Groups['MINOR'].Value) + $([System.Text.RegularExpressions.Regex]::Match($(GitBaseVersion), $(_GitBaseVersionExpr)).Groups['PATCH'].Value) + $(GitBaseVersionMajor) + $(GitBaseVersionMinor) + $([MSBuild]::Add('$(GitBaseVersionPatch)', '$(GitCommits)')) + $([System.Text.RegularExpressions.Regex]::Match($(GitBaseVersion), $(_GitBaseVersionExpr)).Groups['LABEL'].Value) + -$(GitSemVerLabel) + + + + + $(GitBaseVersion) + $(GitBaseVersionSource) + $(GitBaseVersionMajor) + $(GitBaseVersionMinor) + $(GitBaseVersionPatch) + $(GitCommits) + $(GitTag) + $(GitBaseTag) + $(GitSemVerMajor) + $(GitSemVerMinor) + $(GitSemVerPatch) + $(GitSemVerLabel) + $(GitSemVerDashLabel) + $(GitSemVerSource) + + + + + + + + <_GitInfoContent>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)GitInfo.cache.pp')) + + <_GitInfoContent>$(_GitInfoContent.Replace('$GitBranch$', '$(GitBranch)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitCommits$', '$(GitCommits)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitCommit$', '$(GitCommit)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitSha$', '$(GitSha)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersion$', '$(GitBaseVersion)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersionSource$', '$(GitBaseVersionSource)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersionMajor$', '$(GitBaseVersionMajor)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersionMinor$', '$(GitBaseVersionMinor)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseVersionPatch$', '$(GitBaseVersionPatch)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitTag$', '$(GitTag)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitBaseTag$', '$(GitBaseTag)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerMajor$', '$(GitSemVerMajor)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerMinor$', '$(GitSemVerMinor)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerPatch$', '$(GitSemVerPatch)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerLabel$', '$(GitSemVerLabel)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerDashLabel$', '$(GitSemVerDashLabel)')) + <_GitInfoContent>$(_GitInfoContent.Replace('$GitSemVerSource$', '$(GitSemVerSource)')) + + + + <_GitInfoFileDir>$([System.IO.Path]::GetDirectoryName('$(_GitInfoFile)')) + + + + + + + + + + + + + + + GitInfo; + GitVersion; + _GitInputs; + _GitGenerateThisAssembly + + + + + + + + + <_GeneratedCodeFiles Include="$(GitInfoThisAssemblyFile)" /> + + + + + + + + <_ThisAssemblyContent>$([System.IO.File]::ReadAllText('$(MSBuildThisFileDirectory)GitInfo$(DefaultLanguageSourceExtension).pp')) + + + <_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' != ''">$(_ThisAssemblyContent.Replace('$NamespaceDefine$', 'LOCALNAMESPACE')) + <_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' == ''">$(_ThisAssemblyContent.Replace('$NamespaceDefine$', 'GLOBALNAMESPACE')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$MetadataDefine$', '$(GitThisAssemblyMetadataDefine)')) + + <_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' != ''">$(_ThisAssemblyContent.Replace('RootNamespace.', '$(ThisAssemblyNamespace).')) + <_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' == ''">$(_ThisAssemblyContent.Replace('RootNamespace.', '')) + + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('_RootNamespace_', '$(ThisAssemblyNamespace)')) + + + <_ThisAssemblyContent Condition="'$(Language)' == 'C#' And '$(GitRoot)' == ''">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'false')) + <_ThisAssemblyContent Condition="'$(Language)' == 'C#' And '$(GitIsDirty)' == '1'">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'true')) + <_ThisAssemblyContent Condition="'$(Language)' == 'C#' And '$(GitIsDirty)' == '0'">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'false')) + + <_ThisAssemblyContent Condition="'$(Language)' == 'VB' And '$(GitRoot)' == ''">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'False')) + <_ThisAssemblyContent Condition="'$(Language)' == 'VB' And '$(GitIsDirty)' == '1'">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'True')) + <_ThisAssemblyContent Condition="'$(Language)' == 'VB' And '$(GitIsDirty)' == '0'">$(_ThisAssemblyContent.Replace('$GitIsDirty$', 'False')) + + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBranch$', '$(GitBranch)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitCommits$', '$(GitCommits)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitCommit$', '$(GitCommit)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSha$', '$(GitSha)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersion$', '$(GitBaseVersion)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersionSource$', '$(GitBaseVersionSource)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersionMajor$', '$(GitBaseVersionMajor)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersionMinor$', '$(GitBaseVersionMinor)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseVersionPatch$', '$(GitBaseVersionPatch)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitTag$', '$(GitTag)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitBaseTag$', '$(GitBaseTag)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerMajor$', '$(GitSemVerMajor)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerMinor$', '$(GitSemVerMinor)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerPatch$', '$(GitSemVerPatch)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerLabel$', '$(GitSemVerLabel)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerDashLabel$', '$(GitSemVerDashLabel)')) + <_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('$GitSemVerSource$', '$(GitSemVerSource)')) + + + + $([System.IO.Path]::GetDirectoryName('$(GitInfoThisAssemblyFile)')) + + + + + + + + + + + + + + + + + "C:\Program Files\Git\bin\git.exe" + "C:\Program Files (x86)\Git\bin\git.exe" + C:\msysgit\bin\git.exe + $(MSBuildThisFileDirectory)wslrun.cmd git + C:\cygwin\bin\git.exe + C:\cygwin64\bin\git.exe + + git.exe + + + git + + + + + $(MSBuildThisFileDirectory)wslpath.cmd + C:\cygwin\bin\cygpath.exe + C:\cygwin64\bin\cygpath.exe + + + + + + true + +