سؤال

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