Visual Studio has begun exhibiting a rather irritating quirk. When I edit a resource file (using either the designer view or editing the XML directly), it creates a duplicate resource Designer.cs file, which causes the project to be unable to build.
Example: Let's say my resource file is called ProjectSQL.resx. If you expand ProjectSQL.resx in the Solution Explorer, it shows ProjectSQL.Designer.cs. When I make an edit to one of the queries defined in ProjectSQL.resx, it saves fine, but creates another file called ProjectSQL1.Designer.cs.
In that example, there's now two class files with the same class name, causing the build failure.
Has anyone had this problem before? How did you fix it? I've tried closing the solution and reopening, as well as restarting Visual Studio. Using VS 2010 Premium on Windows 7 Ultimate for those interested.