It is possible to group classes, or any type of file, in the same way aspx files do with their code behind files. just like i have done below:

Unfortunatly it is only possible(with out the use of an visual studio add-in) to add file dependency in a project by editing the project file. To edit the project file with int he IDE you can right click the project ins question and chose the "Unload Project" menu item. that will unload the project and by right clicking the unloaded project you can edit it by chosing the "edit xxx.xsproj" menu item. Now you can see the mark up for your project all you have to do is find the "child" files that you want to add a dependency and add an child element in the specific element called "dependentupon".
See on the right:

Put the name of the file you like the child to depend on and that is that save the project file and load it again by right clicking on the unload project and chosing load project.
this is usefull if you have classes like that derive from providerbase that requires other classes to be created, so they can stay nested inside the main one. to save time also you can export them as template items (remember the export tool in vs only export the first level of dependency).
You can download the code used to create this post here.

I hope some of you find this helpful.
regards
Daniel Portella
2 comments:
Hi Daniel,
Keep the tips coming, there's some great stuff here. I especially liked the security post.
I'm online now also, representing High Wycombe! Come check me out here.
Sean
I had installed VS web deployment 2008.But when click the option "Add Web Deploynment Project" nothing is getting pop uped like in VS 2005.Can I know why the reason why?I was stucked here.
Post a Comment