[Xamarin.Android.Build.Tasks] fix cases of missing @(Reference)
#7947
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context: https://github.com/dotnet/msbuild/blob/c75672a6e7387bc5c1f99c166e9277351144b14c/src/Tasks/Microsoft.Common.CurrentVersion.targets#L2327
Fixes: dotnet/maui#10154
This partially reverts c1efcb5.
Previously, we removed this change because it broke .NET MAUI's build
with:
The problem being that the .NET SDK was placing satellite assemblies
in the
@(ResolvedFileToPublish)
item group.Let's apply our change from before, but also set
$(ResolveAssemblyReferencesFindRelatedSatellites)
tofalse
forour "inner build" per
$(RuntimeIdentifier)
.This solves the original issue for dotnet/maui#10154 without changing
behavior of satellite assemblies.
I added
.resx
files in our new test, and assert that satelliteassemblies are inside the resulting
.apk
for good measure.