Build/publish fails when project has a &
(ampersand) in it during AOT phase
#9107
Labels
Area: App+Library Build
Issues when building Library projects or Application projects.
needs-triage
Issues that need to be assigned.
Android framework version
net9.0-android
Affected platform version
9.0.100-preview.6.24328.19
Description
A net9.0-android (but probably also net8.0-android) project with a
&
(ampersand) character in it can be created and built, except when AOT is involved, which then fails.Steps to Reproduce
Run these:
dotnet new android -o "android&stuff"
cd "android&stuff"
dotnet build "android&stuff.csproj" -c Release
Note that running ``dotnet build "android&stuff.csproj"` works just fine.
The result is several errors like this:
You can run step (3) with the
-bl
parameter to get a binlog with more details.But it seems that the
&
char is causing some paths to be troublesome with the AOT pipeline. The same project without the&
in it works fine too.Did you find any workaround?
Don't use
&
char in project name. But there could be other problematic chars as well. Then again, I recently found that the whole Android stack is at best friendly to ASCII chars in paths, but not all ASCII chars (forget Unicode entirely).Relevant log output
No response
The text was updated successfully, but these errors were encountered: