Skip to content

Remove legacy machine.config resource - #12317

Open
jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers-remove-machine-config-copy
Open

Remove legacy machine.config resource#12317
jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers-remove-machine-config-copy

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Summary

  • stop copying the legacy machine.config file into Android intermediate assets
  • remove the unused embedded resource and its test entry

Fixes #7350

Testing

  • validated Xamarin.Android.Common.targets as XML
  • project build not run because the available SDK is .NET 10 while main targets .NET 11

Stop copying the unused legacy configuration file into Android intermediate assets and remove the embedded resource.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 0742e7ec-25d9-467b-90ea-6d1f78ac30fe
Copilot AI review requested due to automatic review settings August 7, 2026 18:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Removes a legacy machine.config embedded resource that was still being copied into Android intermediate assets, aligning modern .NET Android builds with current runtime expectations and addressing #7350.

Changes:

  • Stop copying machine.config into $(MonoAndroidIntermediateAssemblyDir) during the static resources step.
  • Remove machine.config from @(FileWrites) so it’s no longer tracked as a build output.
  • Update the CopyResource embedded resource test list and delete the unused resource file.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets Removes the CopyResource invocation and FileWrites entry for machine.config.
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/CopyResourceTests.cs Updates the embedded-resource presence test to no longer expect machine.config.
src/Xamarin.Android.Build.Tasks/Resources/machine.config Deletes the unused legacy embedded resource.

@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.NET Android app is still copying legacy machine.config to assets dir

2 participants