Skip to content

Commit

Permalink
Merge pull request CommunityToolkit#351 from CommunityToolkit/llama/m…
Browse files Browse the repository at this point in the history
…ulti-target-fix

Fix issued with MultiTarget.props being ignored in Experiments
  • Loading branch information
michael-hawker authored Jan 11, 2023
2 parents f08c089 + f84cd48 commit 3efe3f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MultiTarget/MultiTarget.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
<MultiTargetIsSampleProject Condition="$(MSBuildProjectName.EndsWith('.Samples')) == 'true'">true</MultiTargetIsSampleProject>
</PropertyGroup>

<Import Project="$(MSBuildThisFileDirectory)\Defaults.props" Condition="'$(MultiTarget)' == ''" />
<Import Project="$(MSBuildProjectDirectory)\MultiTarget.props" Condition="Exists('$(MSBuildProjectDirectory)\MultiTarget.props') AND '$(MultiTarget)' == ''" />

<!-- If in a sample project, pull the MultiTarget settings from the source project. -->
<!-- This behavior is also implemented in GeneratedAllProjectReferences.ps1 for <ProjectReference> generation. -->
<Import Project="../../src/MultiTarget.props" Condition="$(MultiTargetIsSampleProject) == 'true' AND !Exists('$(MSBuildProjectDirectory)\MultiTarget.props') AND Exists('../../src/MultiTarget.props')" />
<Import Project="../../src/MultiTarget.props" Condition="$(MultiTargetIsSampleProject) == 'true' AND !Exists('$(MSBuildProjectDirectory)\MultiTarget.props') AND Exists('../../src/MultiTarget.props') AND '$(MultiTarget)' == ''" />

<Import Project="$(MSBuildThisFileDirectory)\Defaults.props" Condition="'$(MultiTarget)' == ''" />

<PropertyGroup>
<!--
Expand Down Expand Up @@ -78,4 +79,4 @@
<HintPath Condition="Exists('c:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\Extensions\Xamarin.VisualStudio')">c:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\Extensions\Xamarin.VisualStudio\Xamarin.Mac.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
</Project>

0 comments on commit 3efe3f3

Please sign in to comment.