[ArPow] Check in the empty src/Directory.Build.props and targets instead of generating them (#11350)
* check in directory.build.props and targets instead of generating them * make empty build props and targets comments more reader friendly
This commit is contained in:
parent
00bce2f560
commit
98b681d564
3 changed files with 14 additions and 22 deletions
|
@ -402,28 +402,6 @@
|
||||||
<WriteLinesToFile File="$(RepoCompletedSemaphorePath)CreateCombinedRestoreSourceAndVersionProps.complete" Overwrite="true" />
|
<WriteLinesToFile File="$(RepoCompletedSemaphorePath)CreateCombinedRestoreSourceAndVersionProps.complete" Overwrite="true" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<!--
|
|
||||||
Generate blank directory build files above the repos, so they won't
|
|
||||||
automatically find the source-build directory build files ("escaping" their
|
|
||||||
directories and causing differences vs. ordinary build).
|
|
||||||
-->
|
|
||||||
<Target Name="PreventDirectoryBuildPropsTargetsEscape"
|
|
||||||
BeforeTargets="Build"
|
|
||||||
Inputs="$(MSBuildProjectFullPath)"
|
|
||||||
Outputs="$(RepoCompletedSemaphorePath)PreventDirectoryBuildPropsTargetsEscape.complete">
|
|
||||||
<ItemGroup>
|
|
||||||
<DirectoryBuildFilename Include="Directory.Build.targets" />
|
|
||||||
<DirectoryBuildFilename Include="Directory.Build.props" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<WriteLinesToFile
|
|
||||||
Lines="<Project />"
|
|
||||||
File="$([MSBuild]::NormalizePath('$(SubmoduleDirectory)', '%(DirectoryBuildFilename.Identity)'))"
|
|
||||||
Overwrite="True" />
|
|
||||||
|
|
||||||
<WriteLinesToFile File="$(RepoCompletedSemaphorePath)PreventDirectoryBuildPropsTargetsEscape.complete" Overwrite="true" />
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Target Name="Build"
|
<Target Name="Build"
|
||||||
DependsOnTargets="BuildRepoReferences"
|
DependsOnTargets="BuildRepoReferences"
|
||||||
Inputs="$(MSBuildProjectFullPath)"
|
Inputs="$(MSBuildProjectFullPath)"
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
<Project>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Prevent repo src automatic Directory.Build imports from finding source-build infra.
|
||||||
|
-->
|
||||||
|
|
||||||
|
</Project>
|
|
@ -0,0 +1,7 @@
|
||||||
|
<Project>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
Prevent repo src automatic Directory.Build imports from finding source-build infra.
|
||||||
|
-->
|
||||||
|
|
||||||
|
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue