How to use "resx" in a Library? #23673
Unanswered
wojciech-kulik
asked this question in
Q&A
Replies: 1 comment
-
We use Rex files in a dedicated project. We have a white label app and a build time we copy a client specific Rex file to this project and that is it .in the after build event in visual studio you could copy it.0r in the azure pipeline u can do it . |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I migrated my shared Xamarin project to .NET MAUI Library. I need to use translations that are stored there. They need to be accessible from this library and from the MAUI app project that references this library.
How can I configure my
csproj
to generate strongly typed properties for theresx
file? I couldn't find any information on that. Tutorial only says to put this file in MAUI app project. However, then it wouldn't be accessible by my modules inside .NET MAUI Library (migrated Xamarin shared project)?So far I figured out that I have to rename the previously generated file
Strings.Designer.cs
toStrings.cs
and replaceinternal
withpublic
. However, this is just a workaround, because the new translations are not auto-generated.Beta Was this translation helpful? Give feedback.
All reactions