Skip to content

Commit 1f596e1

Browse files
When the CI system supplies a .deps dir, use that as the lineups/packages resource source
1 parent c39c1aa commit 1f596e1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

build/repo.props

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,17 @@
77
<PropertyGroup>
88
<NuGetPublishFeed>https://dotnet.myget.org/f/aspnetcore-ci-dev</NuGetPublishFeed>
99
</PropertyGroup>
10+
11+
<!--
12+
If this build has a .deps dir supplied by the CI system, use that (and *only* that)
13+
// to obtain the package lineup. This ensures we're building and testing against the
14+
// specific Coherence build that this Templating repo build is chained to.
15+
-->
16+
<PropertyGroup Condition="Exists('$(RepositoryRoot).deps\lineups')">
17+
<PolicyRestoreSources>$(RepositoryRoot).deps\lineups</PolicyRestoreSources>
18+
</PropertyGroup>
19+
<ItemGroup Condition="Exists('$(RepositoryRoot).deps\build')">
20+
<AdditionalRestoreSources Include="$(RepositoryRoot).deps\build" />
21+
</ItemGroup>
22+
1023
</Project>

0 commit comments

Comments
 (0)