I have many Views in my application and I've setup my solution structure
like so:
View
Data Entry
ViewA
ViewB
ViewC
Scanning
ViewD
ViewE
.. etc
Although I have created my folder structure like the above, I create all new
items in the root folder View, then I drag them into the correct folder.
This is to prevent Visual Studio from assigning the default Namespace of
<Root namespace>Views.DataEntry.ViewA
I don't want namespaces that granular, I just use the folders for visual
organization of my project.
Now, the problem I'm having is that I recently added a resx file for one of
my Views to store my strings and teh "designer.cs" file has the entire
project-folder-namespace. OK, so I edit the file and change the names space
from <Root namespace>Views.DataEntry.ViewA to <Root namespace>Views - no
luck, as soon as I edit the resource file and save it resets the namespace.
This is very, very, very annoying. Does anyone know of any tricks to deal
with such a scenario? I don't want to have my views all broken up in
logical folders that have a pile of resx file in the root of "View".
Any tricks very appreciated!
-Steve