Skip to content

Commit

Permalink
fix: Adjusting macos build fix to work with old-style csproj
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrandolph committed Oct 10, 2022
1 parent 7d6cc7d commit 55700f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/Playground/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
</When>
</Choose>

<Import Project="..\..\src\xamarinmac-workaround.targets" Condition="exists('..\..\src\xamarinmac-workaround.targets')" />
<Import Project="..\..\src\xamarinmac-workaround.targets" Condition="exists('..\..\src\xamarinmac-workaround.targets') and $(TargetFramework.ToLower().StartsWith('xamarin')) and $(TargetFramework.ToLower().Contains('mac'))" />
</Project>
2 changes: 1 addition & 1 deletion src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
Project="$(MSBuildThisFileDirectory)\Uno.Extensions.Core.Generators\buildTransitive\Uno.Extensions.Core.props" />

<Import Project="winappsdk-workaround.targets" Condition="exists('winappsdk-workaround.targets')" />
<Import Project="xamarinmac-workaround.targets" Condition="exists('xamarinmac-workaround.targets')" />
<Import Project="xamarinmac-workaround.targets" Condition="exists('xamarinmac-workaround.targets') and $(TargetFramework.ToLower().StartsWith('xamarin')) and $(TargetFramework.ToLower().Contains('mac'))" />
</Project>
2 changes: 1 addition & 1 deletion src/xamarinmac-workaround.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<ItemGroup Condition="$(TargetFramework.ToLower().StartsWith('xamarin')) and $(TargetFramework.ToLower().Contains('mac')) and '$(Configuration)' == 'Release'">
<ItemGroup>
<Reference Include="Xamarin.Mac">
<HintPath Condition="Exists('C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\Xamarin.VisualStudio')">C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\Xamarin.VisualStudio\Xamarin.Mac.dll</HintPath>
<HintPath Condition="Exists('C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Xamarin.VisualStudio')">C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\Extensions\Xamarin.VisualStudio\Xamarin.Mac.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion testing/TestHarness/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
</When>
</Choose>

<Import Project="..\..\src\xamarinmac-workaround.targets" Condition="exists('..\..\src\xamarinmac-workaround.targets')" />
<Import Project="..\..\src\xamarinmac-workaround.targets" Condition="exists('..\..\src\xamarinmac-workaround.targets') and $(TargetFramework.ToLower().StartsWith('xamarin')) and $(TargetFramework.ToLower().Contains('mac'))" />
</Project>

0 comments on commit 55700f5

Please sign in to comment.