views:

25

answers:

1

How can I prevent Visual Studio from naming the classes for new pages that are in folders from being named with the folder name? Does this method not set "right" with anyone else?

+1  A: 

Naming classes or assigning classes to namespaces?

Visual Studio is assuming your project has a namespace hierarchy that mimics the folder structure in your project. I'm not sure if there is a way to override this behavior; when it bothers me I just create new classes on the root folder of my project and then move them to the folder I want.

Jay Riggs
@Jay No. It appends the Folder Name to the class. I know of the namespace thing too. This is different.
Curtis White