Skip to content

Commit

Permalink
Fix up import conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
radical committed Jul 26, 2024
1 parent b1726a2 commit 9e48bf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions playground/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<!-- When $(BuildForTest)==true, importing Aspire.RepoTesting.targets is needed. But import
only when in-repo. For out-of-repo a parent DBprops does the import -->
<Import Project="$(TestsSharedRepoTestingDir)Aspire.RepoTesting.props" Condition="'$(RepoRoot)' != ''" />
only when in-repo. For out-of-repo a parent Directory.Build.props does the import -->
<Import Project="$(TestsSharedRepoTestingDir)Aspire.RepoTesting.props" Condition="'$(RepoRoot)' != '' and '$(BuildForTest)' != 'true'" />

<PropertyGroup>
<!--
Expand Down
2 changes: 1 addition & 1 deletion playground/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@

<!-- When $(BuildForTest)==true, importing Aspire.RepoTesting.targets is needed. But import
only when in-repo. For the out-of-repo case a parent Directory.Build.targets does the import -->
<Import Project="$(TestsSharedRepoTestingDir)Aspire.RepoTesting.targets" Condition="'$(RepoRoot)' != ''" />
<Import Project="$(TestsSharedRepoTestingDir)Aspire.RepoTesting.targets" Condition="'$(RepoRoot)' != '' and '$(BuildForTest)' != 'true'" />
</Project>

0 comments on commit 9e48bf0

Please sign in to comment.