Skip to content

Commit

Permalink
Add comments describing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MackinnonBuck committed Jul 8, 2024
1 parent 304f577 commit 185862c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
5 changes: 3 additions & 2 deletions eng/tools/GenerateFiles/Directory.Build.targets.in
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@

<!-- When building and running locally, manually resolve the just-built frameworks. On Helix, let the SDK resolve the packs itself (they're laid out on top of the .NET SDK in the work items) -->
<PropertyGroup Condition="$(UpdateAspNetCoreKnownFramework) and '$(HELIX_CORRELATION_PAYLOAD)' == ''">
<EnableTargetingPackDownload Condition="'$(TestDependsOnAspNetPackages)' != 'true'">false</EnableTargetingPackDownload>
<EnableRuntimePackDownload Condition="'$(TestDependsOnAspNetPackages)' != 'true'">false</EnableRuntimePackDownload>
<!-- Allow additional targeting and runtime packs to be downloaded only if required by a test. -->
<EnableTargetingPackDownload Condition="'$(TestRequiresTargetingPackDownload)' != 'true'">false</EnableTargetingPackDownload>
<EnableRuntimePackDownload Condition="'$(TestRequiresRuntimePackDownload)' != 'true'">false</EnableRuntimePackDownload>
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
</PropertyGroup>

Expand Down
14 changes: 12 additions & 2 deletions src/ProjectTemplates/TestInfrastructure/Directory.Build.props.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@
<PropertyGroup>
<RepoRoot>${RepoRoot}</RepoRoot>
<ArtifactsBinDir>${ArtifactsBinDir}</ArtifactsBinDir>

<!--
These properties are required so that we know where to find the locally-built shared framework and targeting pack
when creating a custom "dotnet" root for executing generated templates.
-->
<TargetingPackLayoutRoot>${TargetingPackLayoutRoot}</TargetingPackLayoutRoot>
<SharedFrameworkLayoutRoot>${SharedFrameworkLayoutRoot}</SharedFrameworkLayoutRoot>
<TestDependsOnAspNetPackages>${TestDependsOnAspNetPackages}</TestDependsOnAspNetPackages>
<UseAspNetCoreSharedRuntime>true</UseAspNetCoreSharedRuntime>

<!--
Because some template projects require Microsoft.NETCore.App.Runtime.Mono.browser-wasm, we need to allow
the download of additional targeting and runtime packs.
-->
<TestRequiresTargetingPackDownload>true</TestRequiresTargetingPackDownload>
<TestRequiresRuntimePackDownload>true</TestRequiresRuntimePackDownload>
</PropertyGroup>

<Import Project="${ArtifactsBinDir}GenerateFiles\Directory.Build.props" />
Expand Down

0 comments on commit 185862c

Please sign in to comment.