Domanda

I have a situation, where user can select program language. After selecting it i set CurrentCulture and CurrentUICulture to the selected one, and load the appropriate language text for my controls from resource (.resx) files.

If I run the program from Visual Studio it works perfectly. If I run my release version (install my .msi) it only shows in English.

È stato utile?

Soluzione

So there is a difference between your debug and release builds. Is the resx included in your build directory for both the debug and the release?

My guess is that you should look at the Build Action and Copy to Output Directory properties of your resx file.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top