Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Problem building the application which is localized

Hi,

I am creating a tool (using VS.Net 2005)wherein I pick up the hard-coded strings from the code at runtime and place them in a Resx file(Assumption is that the Resx file has already been added in the application),while simultaneuosly replacing the strings by "<resxfilename>.<stringname>".Now the problem is when the search is complete and when we try building the application ,the build fails.This is because it is enable to find the resources in the resx file.If now we add a string in the resx file and save it and build the application,the build is successful.Can nayone please tell me why do we have to exclusively go and save the resx file.

Any help will be highly appreciated.Thanx in advance.

Regards,
Neeta :)
[764 byte] By [Neeta84] at [2007-11-11 9:56:44]
# 1 Re: Problem building the application which is localized
What is the exact error message you receive when you build the application?
Phil Weber at 2007-11-11 21:45:12 >
# 2 Re: Problem building the application which is localized
The error says "The Str1 is not contained in the .Resx file."
Actually I have found the reason for this.The newly added strings were not getting reflected in the proxy class of the .Resx.For this I had to RunCustomTool with property "ResxFileCodeGenerator" to update the proxy class.

Thanx for the reply.

Regards,

Neeta
Neeta84 at 2007-11-11 21:46:12 >