-
Notifications
You must be signed in to change notification settings - Fork 534
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localized satellite packages are not included in build output when using PackageReference #2012
Comments
Any workarounds on this? |
Hi Guys any progress on this? |
This is still an issue! Any progress? Any workarounds? |
Any updates or workarounds for this issue? |
Ping? We're still getting reports of this: |
moved to flutter |
Can we open a sister issue on the iOS side of things? Where would it go? |
No idea for a solution ? That's really problematic |
This issue prevents Humanizer from being used in localized Xamarin projects (see Humanizr/Humanizer#799). This is especially problematic, as Humanizer is described as compatible to Xamarin and this issue does only starts to appear when non english translation are added later on in the development process. It seems the iOS counterpart of this issue has been fixed in xamarin/xamarin-macios#7113. |
Sorry, I know this is an old ticket.... I don't see NuGet's The cause of this behavior seems to be: But if I set
This makes Let me review this behavior in .NET 5/6 and see what happens there: https://github.com/xamarin/net6-samples |
It appears that this is going to "just work" in .NET 6. But keep in mind, this is under active development: https://github.com/xamarin/net6-samples/compare/satelliteassemblies |
Thank you very much for looking into this!
Does this mean this issue will not be resolved until .NET 6 is ready to use? |
@cemrich I'm unsure about setting I will need to do more research. |
I worked around this issue by referencing the Humanizer dlls directly from my head projects and the shared project. I placed the dlls inside a separate project directory with following structure:
I have not yet tested this solution for more than one localization package. |
We suspect this issue is stale and no longer relevant. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. |
This issue will now be closed since it had been marked |
So, is it going to be fixed or not ? |
This issue is from 2018, I would follow the new one for updates on this: dotnet/maui#4470 |
From @domyd on July 24, 2018 10:50
Description
Localized satellite packages do not seem to work in a Xamarin app when using the PackageReference restore method.
Likely related: Humanizr/Humanizer#380
Steps to Reproduce
Repro project: SatelliteAssemblyApp.zip. It's a git project with two additional branches: (Note: the referenced test nuget packages are included in
/localpackages
and restoring them should just work)works-single-package
references one single NuGet package (SatelliteAssemblyTest.1.0.0
) that includes the main assembly and one localized resource DLL.doesnt-work-multiple-packages
references two NuGet packages:SatelliteAssemblyTest.1.0.1
(which only has the main assembly) andSatelliteAssemblyTest.de.1.0.1
(which only contains the localized resource DLL).Expected Behavior
The localized resource DLLs are included in the APK in both cases (
/assemblies/de/SatelliteAssemblyTest.resources.dll
exists within the APK). On a device with German culture, the label on the main page should say "Deutsch" in both cases.Expected APK: works-single-package.zip
Actual Behavior
The localized resources are missing in the case of split nuget packages (
/assemblies/de
doesn't exist within the APK). On a device with German culture, the label on the main page says "English".Actual APK: doesnt-work-multiple-packages.zip
Basic Information
Copied from original issue: xamarin/Xamarin.Forms#3386
The text was updated successfully, but these errors were encountered: