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 ("AccountResour ces", Assembly.GetExe cutingAssembly( ));
and in method
if (ex.Message.Ind exOf("unq_a_Acc ountName") > 0)
throw new
AccountInformat ionException(st ringManager.Get String("account WithNameExistsM essage"),
ex);
I get an error that Account.resourc e is not part of assembly.
Well I have Account.resx and VS2005 doesn't offer .resource.
So what should I do?
Thank you,
Shimon.