dotnet / dotnet/macios

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

Open
#20,058 10 comments 0 reactions 0 assignees View on GitHub
bug help wanted msbuild
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

Test case:

https://github.com/rolfbjarne/xamarin-macios/commit/f96c36e5eb74d5fc4bbc81b992a5e5a19f7b4c80

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](https://github.com/xamarin/xamarin-macios/files/14195302/build-2024-02-07-154147.binlog.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.