<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Settings1.Designer.cs Bug: Multiple settings files</title><link>http://blogs.msdn.com/b/danielfe/archive/2008/04/27/settings1-designer-cs-bug-multiple-settings-files.aspx</link><description>I ran into this bug today which was unfortunately closed as can't repro. I was renaming some AppSettings variable names (right click on a Project's&amp;#160; Properties and go to the Settings tabs) and deleting some other settings, when I did a Search/Replace</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Settings1.Designer.cs Bug: Multiple settings files</title><link>http://blogs.msdn.com/b/danielfe/archive/2008/04/27/settings1-designer-cs-bug-multiple-settings-files.aspx#10018293</link><pubDate>Tue, 01 Jun 2010 16:09:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10018293</guid><dc:creator>Herbaux Mathias</dc:creator><description>&lt;p&gt;Found a solution.&lt;/p&gt;
&lt;p&gt;I had the same problem with a resource file, every time i had a modification to this file, vs created a &amp;quot;resourcename&amp;quot;1.Designer.cs&lt;/p&gt;
&lt;p&gt;I tried the solution below, but nothing changed.&lt;/p&gt;
&lt;p&gt;the fix is to go in you project csproj or vbproj :&lt;/p&gt;
&lt;p&gt;looki for the weird designer, Settings1.Designer.vb in your case and replace it by Settings.Designer.vb&lt;/p&gt;
&lt;p&gt;in my case it was : &lt;/p&gt;
&lt;p&gt;&amp;lt;EmbeddedResource Include=&amp;quot;Resources\ResTexts.resx&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Generator&amp;gt;ResXFileCodeGenerator&amp;lt;/Generator&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;LastGenOutput&amp;gt;ResTexts1.Designer.cs&amp;lt;/LastGenOutput&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/EmbeddedResource&amp;gt;&lt;/p&gt;
&lt;p&gt;I changed it for &lt;/p&gt;
&lt;p&gt;&amp;lt;EmbeddedResource Include=&amp;quot;Resources\ResTexts.resx&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Generator&amp;gt;ResXFileCodeGenerator&amp;lt;/Generator&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;LastGenOutput&amp;gt;ResTexts.Designer.cs&amp;lt;/LastGenOutput&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;&amp;lt;/EmbeddedResource&amp;gt;&lt;/p&gt;
&lt;p&gt;Now everything is fine&lt;/p&gt;
&lt;p&gt;Hope this will help you&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10018293" width="1" height="1"&gt;</description></item><item><title>re: Settings1.Designer.cs Bug: Multiple settings files</title><link>http://blogs.msdn.com/b/danielfe/archive/2008/04/27/settings1-designer-cs-bug-multiple-settings-files.aspx#9307346</link><pubDate>Mon, 12 Jan 2009 12:13:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9307346</guid><dc:creator>Srinivas Yelamanchili</dc:creator><description>&lt;p&gt; Hi,&lt;/p&gt;
&lt;p&gt;i am using Visual Studio 2008 Pro since few months and have SP1 too (on XP SP2 laptop).&lt;/p&gt;
&lt;p&gt;Today all of a sudden, when adding/editing the Settings&lt;/p&gt;
&lt;p&gt;it's throwing the following errors:&lt;/p&gt;
&lt;p&gt;'Settings is ambiguous between declaration in Modules '&amp;lt;project&amp;gt;.My.MySettingsProperty' and '&amp;lt;project&amp;gt;.My.MySettingsProperty' (same)&lt;/p&gt;
&lt;p&gt;I noticed that the studio created a duplicate of Settings.Designer.vb file as Settings1.Designer.vb&lt;/p&gt;
&lt;p&gt;I then deleted the duplicate file from the 'My Project' folder and deleted the same in the Solution Explorer under Settings.settings&lt;/p&gt;
&lt;p&gt;But once i do the above, the new setting added will not show up in the IntelliSense on typing My.Settings.&lt;/p&gt;
&lt;p&gt;And when i try to edit/add setting, it creates the duplicate Settings1 again and throws 'Settings is ambiguous between ....' errors&lt;/p&gt;
&lt;p&gt;I also noticed that the timestamp of 'Settings.Designer.vb' doesn't change while Settings1.Designer.vb is always updated whenever settings are edited.&lt;/p&gt;
&lt;p&gt;Both files have write permissions.&lt;/p&gt;
&lt;p&gt;This is very annoying and frustrating.&lt;/p&gt;
&lt;p&gt;Does anyone know a working permanent fix to this problem?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;-srinivas yelamanchili&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9307346" width="1" height="1"&gt;</description></item></channel></rss>