Skip to content

Cannot set package name with AndroidManifestPlaceholders #3283

@ArrowCase

Description

@ArrowCase

Steps to Reproduce

  1. Create a Xamarin.Forms or Xamarin.Android solution.
  2. Edit the Android csproj file to add the following to a PropertyGroup:
<AndroidManifestPlaceholders>bundleId=com.somebody.something</AndroidManifestPlaceholders>
  1. Edit AndroidManifest.xml and change the package attribute of the root element as follows:
package="${bundleId}"
  1. Build the project.

repro_project.zip

Expected Behavior

The project is built with a package ID of com.somebody.something.

Actual Behavior

The project is built with a package ID of x__bundleId_.x__bundleId_.

image

Version Information

VS 16.2 Preview 2, everything latest preview.

Metadata

Metadata

Assignees

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.enhancementProposed change to current functionality.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions