Skip to content

NativeAOT result binary on macOS targets latest SDK #98124

Closed
@Mikolaytis

Description

@Mikolaytis

Description

I think that result library should have at least a maximum OS sdk version between used libraries.
I've checked all libraries before linker - maximum sdk version is 11.0. But somehow after compile it's 14.0 in a result binary.
Maybe there is an linker arg or any csproj parameter to select minimum os sdk version I did not found?

I use .net 8.0.101.

Reproduction Steps

Create console app.
Add PublishAot=True
dotnet publish -c Release -r osx-x64
otool -l ConsoleApp1

Expected behavior

minos should be 11.0

Load command 13
cmd LC_BUILD_VERSION
cmdsize 32
platform 1
minos 11.0
sdk 14.2
ntools 1
tool 3
version 1022.1

Actual behavior

Load command 13
cmd LC_BUILD_VERSION
cmdsize 32
platform 1
minos 14.0
sdk 14.2
ntools 1
tool 3
version 1022.1

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions