Board: [DeveloperNet] C# Subject: Renaming the top-level ob From: Baltazar Date: Sat Jan 24, 2015 02:30 Re: Renaming the top-level object/folder in a C# project By: Khelair to All on Fri Jan 23 2015 10:38 pm > Hey guys. Sorry I've been gone so friggin' long. At least I know my > backup scripts work even on a completely hosed machine that needs a > complete reinstall! :D > Anyway, I've just recently gotten a VM working so that I can continue > development where I left off on a C# application about 2 years ago. First > thing I noticed about it is that I forgot to name the application space > correctly; hence the top level folder (and object, presumably?) is named > WindowsFormsApplication1... Anybody know of a decent way to rename this? > Last time I remember trying it was a real PITA... I'm still trying to > remember the basics with this language and Visual Studio in general. > Haven't touched any of it for a loooong time now. If you are using Visual Studio, put your cursor on the namespace name in the code editor and hit F2, or got to Refactor->Rename. It will let you rename the namespace and apply the change across the project. Not sure what version of VS that was added in, but I have 2010 on this PC. You may still want to rename the project and assembly name as well. --- ■ Synchronet ■ The Board - theboard.synchro.net .