|
133 | 133 | <_CommonProps Include="VCTargetsPath=$([MSBuild]::ValueOrDefault('$(VCTargetsPath)', '$([MSBuild]::GetVsInstallRoot())\Common7\IDE\VC\VCTargets\'))" Condition="'$(MSBuildRuntimeType)' != 'Core'"/> |
134 | 134 | </ItemGroup> |
135 | 135 |
|
136 | | - <ItemGroup Condition="'$(Restore)' == 'true'"> |
| 136 | + <ItemGroup> |
137 | 137 | <_RestoreToolsProps Include="@(_CommonProps)"/> |
138 | 138 | <_RestoreToolsProps Include="BaseIntermediateOutputPath=$(ArtifactsToolsetDir)Common"/> |
139 | 139 | <_RestoreToolsProps Include="ExcludeRestorePackageImports=true"/> |
|
150 | 150 | </ItemGroup> |
151 | 151 |
|
152 | 152 | <!-- |
153 | | - Restore built-in tools. |
| 153 | + Builds from the 'internal' project, and only those, can download the .net Runtime |
| 154 | + from a private location. |
| 155 | + --> |
| 156 | + <ItemGroup Condition="'$(SYSTEM_TEAMPROJECT)' == 'internal'"> |
| 157 | + <_RestoreToolsProps Include="DotNetRuntimeSourceFeed=$(DotNetRuntimeSourceFeed)"/> |
| 158 | + <_RestoreToolsProps Include="DotNetRuntimeSourceFeedKey=$(DotNetRuntimeSourceFeedKey)"/> |
| 159 | + </ItemGroup> |
| 160 | + |
| 161 | + <!-- |
| 162 | + Restore built-in tools if requested, and extract information from the NuGet restore output. |
154 | 163 | --> |
155 | 164 | <MSBuild Projects="Tools.proj" |
156 | | - Targets="RestoreAndReturnNuGetPackageRoot" |
| 165 | + Targets="Restore" |
157 | 166 | Properties="@(_RestoreToolsProps);_NETCORE_ENGINEERING_TELEMETRY=Restore" |
158 | | - Condition="'$(Restore)' == 'true'"> |
| 167 | + Condition="'$(Restore)' == 'true'"/> |
| 168 | + |
| 169 | + <MSBuild Projects="Tools.proj" |
| 170 | + Targets="ReturnNuGetPackageRoot" |
| 171 | + Properties="@(_RestoreToolsProps);_NETCORE_ENGINEERING_TELEMETRY=ReturnNuGetPackageRoot"> |
159 | 172 | <Output TaskParameter="TargetOutputs" ItemName="_RestoreToolsOutput" /> |
160 | 173 | </MSBuild> |
161 | 174 |
|
162 | | - <ItemGroup Condition="'$(Restore)' == 'true'"> |
| 175 | + <ItemGroup> |
163 | 176 | <_CommonProps Include="@(_RestoreToolsOutput->'NuGetPackageRoot=%(Identity)')"/> |
164 | 177 | </ItemGroup> |
165 | 178 |
|
166 | | - <!-- |
167 | | - Builds from the 'internal' project, and only those, can download the .net Runtime |
168 | | - from a private location. |
169 | | - --> |
170 | | - <ItemGroup Condition="'$(SYSTEM_TEAMPROJECT)' == 'internal'"> |
171 | | - <_RestoreToolsProps Include="DotNetRuntimeSourceFeed=$(DotNetRuntimeSourceFeed)"/> |
172 | | - <_RestoreToolsProps Include="DotNetRuntimeSourceFeedKey=$(DotNetRuntimeSourceFeedKey)"/> |
173 | | - </ItemGroup> |
174 | | - |
175 | 179 | <ItemGroup> |
176 | 180 | <_PublishProps Include="@(_CommonProps)"/> |
177 | 181 |
|
|
0 commit comments