Skip to content

Show a better error with invalid SupportedOSPlatformVersion values #23626

@rolfbjarne

Description

@rolfbjarne

A SupportedOSPlatformVersion value with a newline:

    <SupportedOSPlatformVersion>
13.0</SupportedOSPlatformVersion>

will make the build fail with:

    ILLink : unknown error IL7000: An error occurred while executing the custom linker steps. Please review the build log for more information.
    ILLINK : error MT2301: The linker step 'Setup' failed during processing: Invalid syntax for line 12 in /Users/rolf/test/dotnet/ios-plain/obj/Debug/net9.0-ios/iossimulator-arm64/custom-linker-options.txt: No equals sign.
    /Users/rolf/packages/microsoft.net.illink.tasks/9.0.6/build/Microsoft.NET.ILLink.targets(96,5): error NETSDK1144: Optimizing assemblies for size failed.

which is not helpful at all.

We should show a better error here.

binlog:

msbuild.binlog.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThe issue or pull request is an enhancement

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions