Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio keeps generating multiple Strings#.Designer.cs files for Strings.resx

I have a Strings.resx file in my windows phone 7 mango project (using the latest RC tools for mango). This file contains localized strings for my application. However, it seems every time I make a change and save it, Visual studio adds a NEW Strings1.Designer.cs, Strings2.Designer.cs, etc... each time the file is saved. The original Strings.Designer.cs is no longer updated, so I keep getting Ambiguity errors. Any idea why this is happening?

like image 373
Jeremy Bell Avatar asked Mar 09 '26 17:03

Jeremy Bell


1 Answers

I also found that in Visual Studio 2013 (possibly earlier as well) that the Strings#.designer.cs name is being saved in the .csproj file. So even once the file system issue is cleared up, VS continues to use Strings# for the filename.

Here are some additional details: Why is the generated class for a resource file in a file with a different name?

like image 161
Ryan Avatar answered Mar 12 '26 06:03

Ryan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!