Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2012 Resources1.Designer.vb created instead of updating Resources.Designer.vb

So the title basically explains it all. Whenever I try to import a resource, Visual Studio is creating a Resources1.Designer.vb file instead of adding the new resource property to Resources.Designer.vb.

I have found a temporary solution: Open Resources1.Designer.vb, search for the property, copy/paste the property into Resources.Designer.vb, and then delete Resources1.Designer.vb.

This solution is really time consuming though. Has anyone else experienced this, or does anyone know of a real/true fix? I've searched here, google, and MSDN. MSDN has an article from VS 2010, but no true solutions were ever proposed.

So to clarify, this happens anytime through any method of importing a resource. Project, Properties, Add Existing, ... SelectedControl, Properties Pane, Image, Import Project Resource, or double-clicking on My Project, Resources.resx, then Add Existing.

like image 455
Aaron Avatar asked Oct 22 '13 20:10

Aaron


1 Answers

Edit the vbproj (csproj) manualy in text editor - remove the number 1

<LastGenOutput>Resources1.Designer.vb</LastGenOutput>

like image 137
Michal Minich Avatar answered Sep 19 '22 12:09

Michal Minich