Skip to content

BundleResource with a quote (%27) in its name causes a build error #20058

Open
@rolfbjarne

Description

@rolfbjarne

Test case:

rolfbjarne@f96c36e

Error:

tools/msbuild/iOS/Xamarin.Shared.targets(340,88): error MSB4113: Specified condition "$([MSBuild]::ValueOrDefault('%(Identity)', '').StartsWith('$(AppBundleDir)/Contents/'))" evaluates to "$([MSBuild]::ValueOrDefault('bin/Debug/net8.0-maccatalyst/maccatalyst-arm64/MySimpleApp.app/Contents/Resources/Rolf's Quote.txt', '').StartsWith('$(AppBundleDir)/Contents/'))" instead of a boolean.

Binlog:

build-2024-02-07-154147.binlog.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixhelp wantedThis is an issue or pull request where we request help from the community to fix or completemsbuildIssues affecting our msbuild tasks/targets

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions