Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > clickonce and localized satellite assemblies
 

clickonce and localized satellite assemblies

Hello,

Until now I used setup projects to deploy my application. The application uses components from DevExpress. The setup projects creates an folder named "NL" in the application folder.This folder holds the localized resource files.For e.g.

.../NL/DevExpress.Xtragrid.vx.x.Resources.dll

To simplify the update process I would like to use the clickonce technology. However I can't get the application to use the Dutch localization. I have read a lot of posts and articles about this subject, but it's still a mistery to me how to get this to work. Questions I have are:

- where to put the resoruce files? Include them as a reference or in a project folder and how to name this folder?

- should the resource files be included in a dowload group and how to name this group (nl, NL, or nl-NL)?

- the startup form has the following code

Shared Sub main()

Threading.Thread.CurrentThread.CurrentCulture = New Globalization.CultureInfo("nl-NL")

Threading.Thread.CurrentThread.CurrentUICulture = New Globalization.CultureInfo("nl")

Application.Run(New frmMainMenu)

End Sub

Do I need to add code to the application load event to get the satellite assemblies?

Thanks in advance!

Kind regards,

Roy

Silencer_1  Tuesday, June 17, 2008 9:20 AM
I managed to find a solution on DevExpress site. They are great Smile
Here is the link:

http://www.devexpress.com/Support/Center/p/Q90726.aspx?searchtext=satellite&tid=4b2d6f97-c4ae-48fc-87f6-8c5da6541e40&pid=-1

Basically you should perform the following steps (For German culture, for example) :

1. In your project, create the "de" folder.
2. Copy the required files from the \DevExpress.DLL\de\ directory to it:
For example:
DevExpress.Data.v7.2.resources.dll
DevExpress.Utils.v7.2.resources.dll
DevExpress.XtraEditors.v7.2.resources.dll
DevExpress.XtraScheduler.v7.2.Core.resources.dll
DevExpress.XtraScheduler.v7.2.resources.dll
3. Add this folder to the project, and set the "CopyToOutputDirectory" property to Copy Always or Copy if newer.
4. Define the application culture as follows:
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de");
5. Rebuild the project.
6. If you check the Application Files under Publish, you will see your satellite assemblies there with publish status = "Include".

Hope this helps,

Roxana.
Roxana Ungureanu  Tuesday, August 12, 2008 12:05 PM
I managed to find a solution on DevExpress site. They are great Smile
Here is the link:

http://www.devexpress.com/Support/Center/p/Q90726.aspx?searchtext=satellite&tid=4b2d6f97-c4ae-48fc-87f6-8c5da6541e40&pid=-1

Basically you should perform the following steps (For German culture, for example) :

1. In your project, create the "de" folder.
2. Copy the required files from the \DevExpress.DLL\de\ directory to it:
For example:
DevExpress.Data.v7.2.resources.dll
DevExpress.Utils.v7.2.resources.dll
DevExpress.XtraEditors.v7.2.resources.dll
DevExpress.XtraScheduler.v7.2.Core.resources.dll
DevExpress.XtraScheduler.v7.2.resources.dll
3. Add this folder to the project, and set the "CopyToOutputDirectory" property to Copy Always or Copy if newer.
4. Define the application culture as follows:
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de");
5. Rebuild the project.
6. If you check the Application Files under Publish, you will see your satellite assemblies there with publish status = "Include".

Hope this helps,

Roxana.
Roxana Ungureanu  Tuesday, August 12, 2008 12:05 PM

You can use google to search for other answers

Custom Search

More Threads

• Aventail Connect Installer Needs Debug - Note: 1: 2262 2: ActionText 3: -2147287038
• Exited event does not to be triggered
• winform is not loading in IE
• Click Once Deployment
• Click Once Error on One Computer
• desktop shortcut for clickonce application
• ClickOnce Icon Points to Wrong Server
• Get Rid of Warning Screen in Setup Program
• Custom Action runs from version being replaced
• [Deployment Project] How to skip some windows in "User Interface"