diff --git a/.gitignore b/.gitignore index af0fe54..770239c 100644 --- a/.gitignore +++ b/.gitignore @@ -1156,3 +1156,6 @@ artifacts/** ## Machine-specific overrides compose.override.yaml + +## Generated per-project GitVersion config (rendered from GitVersion.template.yml) +src/*/GitVersion.yml diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 08b5757..258c7f4 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -1,9 +1,79 @@ - - + + http://localhost + + + $(MSBuildThisFileDirectory)..\GitVersion.yml + <_GitVersionIgnorePathsRegex>(paths:\s*\r?\n\s*- ).+ + + + + + + + <_GitVersionTransitiveRef Include="@(ProjectReference->'%(FullPath)')" /> + + + + + + + + + + + + <_GitVersionScopePath Include="$(MSBuildProjectDirectory)" /> + <_GitVersionScopePath Include="@(_GitVersionScopeProjectRef->'%(RootDir)%(Directory)')" /> + + + <_GitVersionScopePath> + $([MSBuild]::EnsureTrailingSlash($([MSBuild]::MakeRelative('$(MSBuildThisFileDirectory)..\', + '%(Identity)'))).Replace('\', '/').Replace('.', '\.').Replace('/', '\/')) + + + + <_GitVersionIgnorePattern>^(?!@(_GitVersionScopePath->'%(EscapedPath)', + '|')|Directory\.Packages\.props|GitVersion\.yml).* + <_GitVersionTemplateContent>$([System.IO.File]::ReadAllText('$(GitVersionTemplateFile)')) + <_GitVersionRenderedContent>$([System.Text.RegularExpressions.Regex]::Replace('$(_GitVersionTemplateContent)', + '$(_GitVersionIgnorePathsRegex)', '$1$(_GitVersionIgnorePattern)')) + + + + + + + + false +