Repository navigation
_XARemapMembersFilePath is not being treated as a path in the obj folder #8095
Description
Activity
- addedArea: App+Library BuildIssues when building Library projects or Application projects.Issues when building Library projects or Application projects.needs-triageIssues that need to be assigned.Issues that need to be assigned.
on Jun 1, 2023 - changed the title
[-]`xa-internal/xa-remap-members.xml` is not being excluded in git changelog[/-][+]_XARemapMembersFilePath is not being treated as a path in the obj folder[/+]on Jun 1, 2023 Similar question as: #8096 (comment)
Does this happen if you remove: https://www.nuget.org/packages/Microsoft.Intune.Maui.Essentials.android/9.5.2-beta2
- addedneed-infoIssues that need more information from the author.Issues that need more information from the author.and removedneeds-triageIssues that need to be assigned.Issues that need to be assigned.
on Jun 2, 2023 Yes this too goes away if we remove the https://www.nuget.org/packages/Microsoft.Intune.Maui.Essentials.android/9.5.2-beta2 dependency from the project
- ghost removedneed-infoIssues that need more information from the author.Issues that need more information from the author.
on Jun 2, 2023 - ghost addedneed-attentionA xamarin-android contributor needs to reviewA xamarin-android contributor needs to review
on Jun 2, 2023 - removedneed-attentionA xamarin-android contributor needs to reviewA xamarin-android contributor needs to review
on Jun 2, 2023 - added a commit that references this issue
on Jul 5, 2023 - added a commit that references this issue
on Jul 6, 2023 I'm still able to repro this issue on a .NET 7 app. However, this is resolved on a .NET 8 app.
Is this by design?Is this by design?
Largely, yes. Even when using .NET 8, the .NET 7 support is almost entirely separate from the .NET 8 build system. (Implementation-wise, the .NET 8 workload references the .NET 7 workload packages.). Thus, in order for any .NET 7 build to get build-system fixes, those fixes need to be applied to the release/7.0.4xx branch, a new .NET 7 build released, and the .NET 8 workload updated to reference the new .NET 7 bits.
Changes present in the .NET 8 workload do not apply to .NET 7 builds, even when multitargeting from a .NET 8 installation.
- locked and limited conversation to collaborators
on Jan 22, 2024
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
objfolder 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
MonoAndroidAssetsDirIntermediateis defined after defining_XARemapMembersFilePathin https://github.com/xamarin/xamarin-android/blob/main/src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targetsSteps to Reproduce
Expected:
xa-internal/xa-reamp-members.xmlshould not be included in the git changelog.Actual:
xa-internal/xa-remap-members.xmlis included in the git changelog.Did you find any workaround?
The workaround is to explicitly add
xa-internal/xa-remap-members.xmlin the .gitignore fileRelevant log output
No response