Skip to content

_XARemapMembersFilePath is not being treated as a path in the obj folder #8095

@Archit-Pikle

Description

@Archit-Pikle

Android application type

.NET Android (net7.0-android, etc.)

Affected platform version

VS 17.6.0 Preview 7.0

Description

The xa-internal/xa-remam-members.xml created for each build is not being treated as a path in the obj folder but is rather being configured as a relative path.
This is causing the file to be added in git changelog.

The workaround we are using is to explicitly add the file in our .gitignore file.

We think this is happening because MonoAndroidAssetsDirIntermediate is defined after defining _XARemapMembersFilePath in https://github.com/xamarin/xamarin-android/blob/main/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets

Steps to Reproduce

  1. Create a .NET App for a github project.
  2. Make some changes, build and deploy the app.

Expected: xa-internal/xa-reamp-members.xml should not be included in the git changelog.
Actual: xa-internal/xa-remap-members.xml is included in the git changelog.

Did you find any workaround?

The workaround is to explicitly add xa-internal/xa-remap-members.xml in the .gitignore file

Relevant log output

No response

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions