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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top