Skip to content

Commit feb75b5

Browse files
committed
SIG feedback.
1 parent 5178e47 commit feb75b5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

build/Common.prod.props

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@
114114

115115
<PropertyGroup>
116116
<MarkdownCommentRegex>\[([^]]+?)\]\(\.(.+?)\)</MarkdownCommentRegex>
117-
<GitHubPermalinkUrl>$(GitOriginConsoleOutput.Replace('.git',''))/blob/$(GitCommitConsoleOutput)</GitHubPermalinkUrl>
117+
<GitHubRepoUrl>$(GitOriginConsoleOutput.Replace('.git',''))</GitHubRepoUrl>
118+
<GitHubPermalinkUrl Condition="'$(PackTag)' != ''">$(GitHubRepoUrl)/blob/$(PackTag)</GitHubPermalinkUrl>
119+
<GitHubPermalinkUrl Condition="'$(PackTag)' == ''">$(GitHubRepoUrl)/blob/$(GitCommitConsoleOutput)</GitHubPermalinkUrl>
118120
</PropertyGroup>
119121

120122
<Message Importance="high" Text="**GitInformationDebug** GitCommitConsoleOutput: $(GitCommitConsoleOutput), GitCommitExitCode: $(GitCommitExitCode), GitOriginConsoleOutput: $(GitOriginConsoleOutput), GitOriginExitCode: $(GitOriginExitCode), GitHubPermalinkUrl: $(GitHubPermalinkUrl)" />
@@ -128,7 +130,7 @@
128130
</ItemGroup>
129131

130132
<WriteLinesToFile
131-
File="$(BaseIntermediateOutputPath)%(PackageMarkdownFiles.Filename)%(PackageMarkdownFiles.Extension)"
133+
File="$(IntermediateOutputPath)%(PackageMarkdownFiles.Filename)%(PackageMarkdownFiles.Extension)"
132134
Lines="$([System.Text.RegularExpressions.Regex]::Replace($([System.IO.File]::ReadAllText(%(PackageMarkdownFiles.FullPath))), '$(MarkdownCommentRegex)', '[$1]($(GitHubPermalinkUrl)%(PackageMarkdownFiles.Path).$2)').Replace('\', '/'))"
133135
Overwrite="true"
134136
Encoding="UTF-8"/>
@@ -144,7 +146,7 @@ For detailed changes see: $(GitHubPermalinkUrl)$(_PackageChangelogFilePath).
144146
</PropertyGroup>
145147

146148
<ItemGroup>
147-
<Content Include="$(BaseIntermediateOutputPath)*.md" PackagePath="/" />
149+
<Content Include="$(IntermediateOutputPath)*.md" PackagePath="/" />
148150
</ItemGroup>
149151
</Target>
150152

0 commit comments

Comments
 (0)