Dll working environment with a specific culture that does not work in the .NET environment when the application is installed using the cab file

I created a localization application using visual studio 2008 and .net compact framework 3.5 on Windows Mobile 6.1. To achieve localization, I used a lot of resource files for this, one for each langauge:

StringResources.de-DE.resx

StringResources.es-ES.resx

StringResources.en-GB.resx

StringResources.fr-FR.resx

StringResources.nl-NL.resx

I also have a StringResources.resx file with default strings to return if I select a different culture that is not supported by my application.

I also created a .cab file using "SmartDeviceCabProject" (type vdproj) to complete the installation of this application on the device. (using msdn.microsoft.com/en-us/library/aa446504.aspx)

Here is the problem I am facing: When I change culture to anything other than nl-NL, I always get the default strings.

Also note that when copying, paste the “bin” folder of the application into the device, all culture lines are visible. Only when the application is installed through the cab file does the problem occur.

Also, if I delete the StringResources.nl-NL.resx file and only

StringResources.de-DE.resx

StringResources.es-ES.resx

StringResources.en-GB.resx

StringResources.fr-FR.resx

, , , ., , -, fr-FR, . , .

, , DLL, : -DE\Application.StringResources.dll

ES-ES\Application.StringResources.dll

-\Application.StringResources.dll

FR-FR\Application.StringResources.dll

-NL\Application.StringResources.dll

, , dll . , dll, "bin", .

, , .cab DLL .

, , :

** 1. , cab DLL ?

  • DLL?

  • ? **

+3
1

WizCab.exe: Smart CAB Project .

, :

  • , ():

    copy "$ (TargetDir) sv\$(TargetName).resources.dll" "$ (TargetDir) sv\sv _ $(TargetName).resources.dll"

    .

  • - ( 4) .

  • ( .cab- "" → " " ) " " ,

  • " " ( "YourProject.resources.dll".)

, .

+6

Source: https://habr.com/ru/post/1785033/


All Articles