File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 112
112
<ProjectProperty Include =" RepositoryBranch" />
113
113
<ProjectProperty Include =" RepositorySha" />
114
114
<ProjectProperty Include =" RepositoryCommit" />
115
+ <ProjectProperty Include =" RepositoryRoot" />
115
116
</ItemGroup >
116
117
117
118
<!-- Make sure the source control info is available before calling source generators -->
132
133
<SourceRevisionId >$(RepositorySha)</SourceRevisionId >
133
134
</PropertyGroup >
134
135
136
+ <!-- Add SourceRoot as a project property too -->
137
+ <ItemGroup >
138
+ <_GitSourceRoot Include =" @(SourceRoot -> WithMetadataValue('SourceControl', 'git'))" />
139
+ </ItemGroup >
140
+
141
+ <PropertyGroup >
142
+ <RepositoryRoot >@(_GitSourceRoot)</RepositoryRoot >
143
+ </PropertyGroup >
144
+
135
145
</Target >
136
146
137
147
<!-- Always append the link to the direct source tree for the current build -->
You can’t perform that action at this time.
0 commit comments