Uncategorized

Embedded resources and localization

January 15, 2006

author:

Embedded resources and localization

Discovered something quite by accident today. If you use an embedded file in a VS.Net project and have the filename in the format [basename].[locale].[extension] (example: MyInfo.en-US.xml), VS.Net automatically presumes that this is a culture-specific resource, puts it in a separate assembly and drops it into a subfolder of the main “bin” folder. The subfolder has the same name as the locale.

I am not sure if there’s an easy way around it, but for now, I simply removed the locale from the filename and it works as expected.

 

Founder NftyDreams; founder Decentology; co-founder DNN Software; educator; Open Source proponent; Microsoft MVP; tech geek; creative thinker; husband; dad. Personal blog: http://www.kalyani.com. Twitter: @techbubble
Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.