I just started trying localization for my web application.
I have class library as part of solution so I need to globalize / localize
this component too.
I created resource file in the assembly itself - Account.resx - the one that
VS offers.
And wrote code like this.
static ResourceManager stringManager=
new ResourceManager("AccountResources", Assembly.GetExecutingAssembly());
and in method
if (ex.Message.IndexOf("unq_a_AccountName") > 0)
throw new
AccountInformationException(stringManager.GetStrin g("accountWithNameExistsMessage"),
ex);
I get an error that Account.resource is not part of assembly.
Well I have Account.resx and VS2005 doesn't offer .resource.
So what should I do?
Thank you,
Shimon.