Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise Error APT2265 If the Asset Path is Invalid #9809

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

dellis1972
Copy link
Contributor

@dellis1972 dellis1972 commented Feb 19, 2025

Context https://dev.azure.com/devdiv/DevDiv/_workitems/edit/2356711

Users regularly run into the following error.

error APT2000: The system cannot find the specified file. (2): C:\Users\xxx\source\repos\AdventureWorks.MAUI\AdventureWorks.MAUI\obj\Debug\net9.0-android\assets

One of the reasons behind this is the aapt2 bug in which it cannot traverse directories with non-ASCII characters in them [1]. This has been a long standing bug that does not seem to be getting an fix any time soon.

As we know why this issue occurs, lets at least raise the specific error code with instructions on how to fix it.

[1] https://issuetracker.google.com/issues/188679588

@dellis1972 dellis1972 changed the title Dev/dellis1972/aapt2266 Add Asset Error APT2266 Feb 19, 2025
@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972 dellis1972 marked this pull request as ready for review February 19, 2025 16:07
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good. 👍

@dellis1972 dellis1972 changed the title Add Asset Error APT2266 Add Asset Error APT2267 Feb 21, 2025
@dellis1972
Copy link
Contributor Author

We had a Apt2266 already, so updated to be 2267

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972 dellis1972 changed the title Add Asset Error APT2267 Raise Error APT2265 If the Asset Path is Invalid Feb 21, 2025
@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dellis1972
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants