[RESOLVED] Newbie Question re: VB.Net
I'm currently running VB.Net Standard Edition (2002 I believe?), and when I try to open a project/solution, I get the following error -
Unable to read the project file "xxxxx.vbproj". The project
"xxxxx.vbproj" was created with a newer version of Visual Studio
which in incompatible with your version. You can only open this project
with newer versions of Visual Studio.
Could this be because the file I'm trying to open was created by VB.Net 2003? If so, are there any ways to fix this problem without having to purchase the 2003 version?
Thanks in advance.
Re: Newbie Question re: VB.Net
I believe you can edit the solution and project files manually. They are plain text files so they can be opened and edited in Notepad. That may be a little risky if you aren't sure what you're doing though. The alternative would be to create a new project and use "Add Existing Item" to import the files from the old project. Be aware that if the project was created with .NET 1.1 specific features then it will not run on version 1.0 of the Framework, which VS.NET 2002 targets.
Re: Newbie Question re: VB.Net
Check out this link, supposedly this little app will convert 2002 to 2003 or 2003 to 2002, you have to "sign up" first to download the app.
Link
Re: Newbie Question re: VB.Net
The Add Existing Item method works - thanks!
Now comes my second question... I created a new project, add existing item (the proj I was having problems opening in VB.Net 2002), and when I try to run the program, it keeps running the blank project I started rather than the project I added as existing item. What am I doing wrong?
Thanks again.
Re: Newbie Question re: VB.Net
Probably need to change which form is the start up form. Do this by right clicking on your project (not the solution) in the solution explorer and selecting properties, then change the startup object to the proper form.
Re: Newbie Question re: VB.Net
So you've created a new project and used Add Existing Item to import each individual code file from the old project to that new project, not the solution? Once you've done that, you would have to delete the Form1 class file that would have been created by default and then specify a new startup object, that being the main form or module or whatever of the old project.
Re: Newbie Question re: VB.Net
Wow, thanks for the quick help everyone! That worked!!!
Re: Newbie Question re: VB.Net
Quote:
Originally Posted by jmcilhinney
So you've created a new project and used Add Existing Item to import each individual code file from the old project to that new project, not the solution? Once you've done that, you would have to delete the Form1 class file that would have been created by default and then specify a new startup object, that being the main form or module or whatever of the old project.
Thanks jmcilhinney, I just tried what nothingofvalue suggested and it worked! Thanks for your prompt assistance :)
Re: [RESOLVED] Newbie Question re: VB.Net
You should still get rid of any form that is not being used as it is worthless and will only take up space. Also, please mark your post as resolved at the top of the page under the "Thread Tools"
Good Luck
Re: [RESOLVED] Newbie Question re: VB.Net