<?xml version="1.0" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>Microsoft .NET SDK 10.0.115 (x64)</title>
    <background file="dotnetbackground.png" mime-type="image/png"/>
    <options customize="never" require-scripts="false" hostArchitectures="x86_64"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <volume-check>
        <allowed-os-versions>
            <os-version min="12.0"/>
        </allowed-os-versions>
    </volume-check>
    <choices-outline>
        <line choice="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg.x64"/>
        <line choice="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg.x64"/>
        <line choice="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg.x64"/>
        <line choice="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg.x64"/>
        <line choice="com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg.x64"/>
        <line choice="com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg.x64"/>
        <line choice="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg.arm64"/>
        <line choice="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg.arm64"/>
        <line choice="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg.arm64"/>
        <line choice="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg.arm64"/>
        <line choice="com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg.arm64"/>
        <line choice="com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg.arm64"/>
    </choices-outline>
    <choice id="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg.x64" visible="true" selected="IsX64Machine()" title="Microsoft .NET Targeting Pack 10.0.15 (x64)" description="The .NET Targeting Pack">
        <pkg-ref id="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg.x64" visible="true" selected="IsX64Machine()" title="Microsoft .NET AppHost Pack  (x64)" description="The .NET App Host Pack">
        <pkg-ref id="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg.x64" visible="true" selected="IsX64Machine()" title="Microsoft .NET Runtime 10.0.15 (x64)" description="The .NET Shared Framework">
        <pkg-ref id="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg.x64" visible="true" selected="IsX64Machine()" title="Microsoft .NET Host FX Resolver 10.0.15 (x64)" description="The .NET Host FX Resolver">
        <pkg-ref id="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg.x64" visible="true" selected="IsX64Machine()" title="Microsoft .NET Host 10.0.15 (x64)" description="The .NET Shared Host.">
        <pkg-ref id="com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg.x64" visible="true" selected="IsX64Machine()" title="Microsoft .NET SDK 10.0.115 (x64)" description="The .NET SDK">
        <pkg-ref id="com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg.arm64" visible="true" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64" title="Microsoft .NET Targeting Pack 10.0.15 (x64)" description="The .NET Targeting Pack">
        <pkg-ref id="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg.arm64" visible="true" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64" title="Microsoft .NET AppHost Pack  (x64)" description="The .NET App Host Pack">
        <pkg-ref id="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg.arm64" visible="true" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64" title="Microsoft .NET Runtime 10.0.15 (x64)" description="The .NET Shared Framework">
        <pkg-ref id="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg.arm64" visible="true" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64" title="Microsoft .NET Host FX Resolver 10.0.15 (x64)" description="The .NET Host FX Resolver">
        <pkg-ref id="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg.arm64" visible="true" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64" title="Microsoft .NET Host 10.0.15 (x64)" description="The .NET Shared Host.">
        <pkg-ref id="com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg"/>
    </choice>
    <choice id="com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg.arm64" visible="true" selected="!IsX64Machine()" customLocation="/usr/local/share/dotnet/x64" title="Microsoft .NET SDK 10.0.115 (x64)" description="The .NET SDK">
        <pkg-ref id="com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg"/>
    </choice>
    <pkg-ref id="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg" packageIdentifier="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64" version="10.0.15" installKBytes="42577" updateKBytes="0">#com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg</pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg" packageIdentifier="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64" version="10.0.15" installKBytes="12573" updateKBytes="0">#com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg</pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg" packageIdentifier="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64" version="10.0.15" installKBytes="77563" updateKBytes="0">#com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg</pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg" packageIdentifier="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64" version="10.0.15" installKBytes="406" updateKBytes="0">#com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg</pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg" packageIdentifier="com.microsoft.dotnet.sharedhost.component.osx.x64" version="10.0.15" installKBytes="192" updateKBytes="0">#com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg</pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg" packageIdentifier="com.microsoft.dotnet.dev.10.0.115.component.osx.x64" version="10.0.115" installKBytes="488879" updateKBytes="0">#com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg</pkg-ref>
    <script><![CDATA[
function IsX64Machine() {
    var machine = system.sysctl("hw.machine");
    var cputype = system.sysctl("hw.cputype");
    var cpu64 = system.sysctl("hw.cpu64bit_capable");
    var translated = system.sysctl("sysctl.proc_translated");
    system.log("Machine type: " + machine);
    system.log("Cpu type: " + cputype);
    system.log("64-bit: " + cpu64);
    system.log("Translated: " + translated);
    
    // From machine.h
    // CPU_TYPE_X86_64 = CPU_TYPE_X86 | CPU_ARCH_ABI64 = 0x010000007 = 16777223
    // CPU_TYPE_X86 = 7
    var result = machine == "amd64" || machine == "x86_64" || cputype == "16777223" || (cputype == "7" && cpu64 == "1");
    // We may be running under translation (Rosetta) that makes it seem like system is x64, if so assume machine is not actually x64
    result = result && (translated != "1");
    system.log("IsX64Machine: " + result);
    return result;
}
]]></script>
    <pkg-ref id="com.microsoft.dotnet.pack.targeting.10.0.15.component.osx.x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.pack.apphost.10.0.15.component.osx.x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.sharedframework.Microsoft.NETCore.App.10.0.15.component.osx.x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.hostfxr.10.0.15.component.osx.x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.sharedhost.10.0.15.component.osx.x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.microsoft.dotnet.dev.10.0.115.component.osx.x64.pkg">
        <bundle-version/>
    </pkg-ref>
    <product id="com.microsoft.dotnet.dev.10.0.115.osx.x64" version="10.0.115"/>
</installer-gui-script>