Renaming VB.Net Solution and Project filenames...

  • Thread starter Thread starter I_AM_DON_AND_YOU?
  • Start date Start date
I

I_AM_DON_AND_YOU?

I have a small VB.Net Solution. The solution has filename LABELMAKER.SLN and
the the project has filename LABELMAKER.VBPROJ. There is another file
LABELMAKER.VBPROJ.USER. All these are in a directory called LABELMAKER.

Everything is working fine. I just wanted to rename the directory and
filenames. So I changed the directory name as "EASYLABEL" and also changed
the filenames as EASYLABEL.SLN, EASYLABEL.VBPROJ and EASYLABEL.USER.

So when I did this and tried to open the Solution it didn't open it and
showed the follwoing error/warning message:
"Unable to read the project file 'LABELMAKER.VBPROJ'. The system can't find
the file specified"

It's obvious that it's still expecting the old filename even though I have
chagned it with a new name. So to open the solution I had to re-change the
name with the old one.

So..what's the way to rename the solution and project filenames....

Thanks in advance!
 
Hi Don Sender,

Probably you did the changes outside your Visual Studio IDE, the most you
have to do inside the "solution explorer", because otherwise you get this
kind of trouble.

The only thing you can do outside the IDE is as far as I know rename the
directory and even then all settings are lost.

I hope this helps a little bit?
Cor
 
You are right. I did it in Windows Explorer (outside VS IDE). Now I did it
using Solution Explorer. It worked fine.

Thanks. You remember "Sender".
 
As Cor stated, you need to do this inside of VS.NET.

From the Solution Explorer select your Project. Right Click, Select Rename.
You can also select the Solution, Right CLick & select rename. Alternative
after selecting the solution or project in Solution Explorer you can use the
Properties window to rename the solution or project.

In either case remember to preserve the extension!

Before or after you rename them, you can use Windows explorer to rename the
folder. Note if you project is in a different folder then the solution, you
will need to remove the project from the solution then read the project from
the renamed folder.

Hope this helps
Jay
 
Hi Don,

No, I'm thinking more along the lines of The Godfather. ;-)

It's Italian for greetz and/or lader, dude.

Ciao,
Fergus
 
Back
Top