Skip to content

Commit

Permalink
Merge pull request #2714 from cwensley/curtis/build-mac-with-mono-again
Browse files Browse the repository at this point in the history
Fix building Mac64 projects with mono
  • Loading branch information
cwensley authored Dec 11, 2024
2 parents 24b8fa6 + 337bebe commit d93e8ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Eto.Mac/build/Mac.targets
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
<Target Name="CleanAppBundle" AfterTargets="BeforeClean" Condition="$(MacBuildBundle) == 'True'">
<RemoveDir Directories="$(OutputAppPath)"/>
</Target>

<PropertyGroup>
<_UpdatePListReference Condition="$(MSBuildRuntimeType) == 'Mono'">System.Xml</_UpdatePListReference>
<_UpdatePListReference Condition="$(MSBuildRuntimeType) != 'Mono'">netstandard</_UpdatePListReference>
</PropertyGroup>

<!-- Task to update the plist file with new values -->
<UsingTask TaskName="UpdatePList" TaskFactory="RoslynCodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
Expand All @@ -85,7 +90,7 @@
<IconFile ParameterType="System.String" Output="true" />
</ParameterGroup>
<Task>
<Reference Include="netstandard"/>
<Reference Include="$(_UpdatePListReference)"/>
<Code Type="Class" Language="cs"><![CDATA[
using System;
using System.IO;
Expand Down

0 comments on commit d93e8ce

Please sign in to comment.