Hi,
I have App_GlobalResources in my website.
inside i have sub folders and each sub folders there are multiple resource files (.resx) are there.
for each resource file have 2 different files like .resx and .Designer.cs file. Now the problem is when i editing any of the resource (.resx) file and attempting to save the new .Designer.cs file is creating automatically.
for example if i have country.resx & country.Designer.cs file. when i edit and save this then the new file country1.Designer.cs file is creating automatically...
what is the problem. how to avoid this..
the problem was in .csproj file, in .csporj file the entry with lastgenerated output file for my resource file was resource2.designer.cs.. i chaned it to resource.designer.cs and its working..
MARK AS ANSWER IF IT HELPS
Marked as answer by Mikesdotnetting on May 31, 2012 12:40 PM
Your reply is the answer as it was exactly what I needed. I had been struggling to figure out this nagging problem for a while but left it alone until I searched again today and saw your post.
I wanted to mark your answer as the reply but I couldn't do anything against this thread. The post from the Microsoft moderator was marked as the answer but it doesn't help. I couldn't un-mark it as the answer either.
How do we un-mark something as an answer and mark yours?
yogaraj.p
Member
4 Points
41 Posts
Problem:- Creating multiple .Designer.cs files
May 04, 2010 02:57 AM|LINK
Hi,
I have App_GlobalResources in my website.
inside i have sub folders and each sub folders there are multiple resource files (.resx) are there.
for each resource file have 2 different files like .resx and .Designer.cs file. Now the problem is when i editing any of the resource (.resx) file and attempting to save the new .Designer.cs file is creating automatically.
for example if i have country.resx & country.Designer.cs file. when i edit and save this then the new file country1.Designer.cs file is creating automatically...
what is the problem. how to avoid this..
XiaoCheng Fa...
All-Star
17743 Points
1414 Posts
Re: Problem:- Creating multiple .Designer.cs files
May 06, 2010 09:23 AM|LINK
Hi,
I 've tried but cannot represent your issue.
I did follows:
1.Run VWD 2008.
2.Create a new ASP.NET web project.
3.Add a new ASP folder -> add App_GlobalResources.
4.Add a new item -> resource -> rename it to Country(Now there is Country.resx & Country.designer.cs)
5.Add a new item -> resource -> rename it to Resource(Now there is Resource.resx & Resource.designer.cs)
6.Change string1 in Country.resx to aaa values bbb, then save.
7.Nothing happens.
Can you tell me more details about your issue.
By the way, is your country.designer.cs reachable?
I'm looking forward for your reply.
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
patricgreat
Participant
983 Points
278 Posts
Re: Problem:- Creating multiple .Designer.cs files
Feb 13, 2012 11:45 AM|LINK
Can you please tell me how you solved the issue? i am also facing the same issue....
patricgreat
Participant
983 Points
278 Posts
Re: Problem:- Creating multiple .Designer.cs files
Feb 24, 2012 06:11 PM|LINK
the problem was in .csproj file, in .csporj file the entry with lastgenerated output file for my resource file was resource2.designer.cs.. i chaned it to resource.designer.cs and its working..
oakmario
Member
4 Points
4 Posts
Re: Problem:- Creating multiple .Designer.cs files
May 14, 2012 06:32 PM|LINK
Thanks patricgreat!
Your reply is the answer as it was exactly what I needed. I had been struggling to figure out this nagging problem for a while but left it alone until I searched again today and saw your post.
I wanted to mark your answer as the reply but I couldn't do anything against this thread. The post from the Microsoft moderator was marked as the answer but it doesn't help. I couldn't un-mark it as the answer either.
How do we un-mark something as an answer and mark yours?
Andre
patricgreat
Participant
983 Points
278 Posts
Re: Problem:- Creating multiple .Designer.cs files
May 31, 2012 09:48 AM|LINK
Actually only owner(who initiated the thread or moderator) can do it.... Its glad that it helped you...