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

Build fails of $(AndroidManifest) is an absolute path #9268

Open
jonpryor opened this issue Aug 30, 2024 · 1 comment
Open

Build fails of $(AndroidManifest) is an absolute path #9268

jonpryor opened this issue Aug 30, 2024 · 1 comment
Assignees
Labels
Area: App+Library Build Issues when building Library projects or Application projects. needs-triage Issues that need to be assigned.

Comments

@jonpryor
Copy link
Member

Android framework version

net8.0-android, net9.0-android

Affected platform version

All

Description

Context: https://developercommunity.visualstudio.com/t/Error-code---XA1018--Specified-AndroidMa/10728496

dotnet build fails if $(AndroidManifest) is an absolute path.

This is likely related to:

<_AndroidManifestAbs Condition=" '$(AndroidManifest)' != '' ">$(ProjectDir)$(AndroidManifest)</_AndroidManifestAbs>

Steps to Reproduce

% dotnet new android

# this works
% dotnet build *.csproj

# this fails
% dotnet build "-p:AndroidManifest=$(pwd)/AndroidManifest.xml" *.csproj
…
error XA1018: Specified AndroidManifest file does not exist: $(pwd)/$(pwd)/AndroidManifest.xml.

Did you find any workaround?

Don't use an absolute path in $(AndroidManifest).

Relevant log output

No response

@jonpryor jonpryor added Area: App+Library Build Issues when building Library projects or Application projects. needs-triage Issues that need to be assigned. labels Aug 30, 2024
@jpobst
Copy link
Contributor

jpobst commented Aug 30, 2024

Related: #7243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: App+Library Build Issues when building Library projects or Application projects. needs-triage Issues that need to be assigned.
Projects
None yet
Development

No branches or pull requests

4 participants