473,473 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Moving a project from 2003 to 2005

Just getting started with VB2005 and unsure how best to move active
VB2003 projects into the VB2005 environment.

Nornally I've versioned my VB2003 projects at specific development
points by starting a new (blank) project and using Add Existing Item
to import all the files from the previous project version before
saving in a new folder location belonging to the new project.

But on doing this in the VB2005 environment I find I've got a couple
of 'multiple definitions with identical signatures' errors in code
belonging to the form designer itself. Presumably some aspects of the
way the 2003 form designer worked are now deprecated or otherwise
unworkable in the 2005 designer.

Any suggestions as to how to fix these errors please?

JGD
Feb 12 '06 #1
8 2126
Anyone, please?

JGD
Feb 13 '06 #2
John,

Are you sure it are "Errors". In VB2005 is now added "Warnings", I cannot
say they mean nothing, however it is not more than it say, warnings and they
are given on many places a VB programmer would not even think on to do it
and in the idea of some of us even to often from a kind of C# thinking (See
the long thread now active about passing the "").

I assume that you are talking about window forms projects.

I hope this gives an idea.

Cor
Feb 13 '06 #3
On Mon, 13 Feb 2006 10:21:32 +0100, "Cor Ligthert [MVP]"
<no************@planet.nl> wrote:
John,

Are you sure it are "Errors". In VB2005 is now added "Warnings", I cannot
say they mean nothing, however it is not more than it say, warnings and they
are given on many places a VB programmer would not even think on to do it
and in the idea of some of us even to often from a kind of C# thinking (See
the long thread now active about passing the "").

I assume that you are talking about window forms projects.


Thanks. Yes this is a Windows Form project. And yes these are
definitely 'errors' - there are many other 'warnings' (it's a
reasonably large project). But the warnings I can understand for the
most part and deal with if necessary. The errors are stopping me
compiling the project under 2005.

I've found the Convert Project option, which seems to run -
unsurprisingly - if you open the 2003 project from its original
location in 2005. But AFAICS the code files (ie the .vb files) remain
unchanged.

I guess what I'm confused about is that the automatically-generated
form code, which is what is generating my errors, isn't changed in the
..vb files, yet something external to them is clearing the errors in a
converted 2005 environment. But until I understand this issue then I'm
not comfortable continuing to work in 2005 because I don't know how -
reliably - to make a new version of my project.

JGD
Feb 13 '06 #4
John,

Can you give us an example in code? Beside that anoying 'multiple
definitions with identical signatures' I hope that it will be fixed in SP1.
In those cases as with the dialog.result, you have to give the full path.

System.Windows.Forms.DialogResult.OK

Cor
"John Dann" <ne**@prodata.co.uk> schreef in bericht
news:ov********************************@4ax.com...
On Mon, 13 Feb 2006 10:21:32 +0100, "Cor Ligthert [MVP]"
<no************@planet.nl> wrote:
John,

Are you sure it are "Errors". In VB2005 is now added "Warnings", I cannot
say they mean nothing, however it is not more than it say, warnings and
they
are given on many places a VB programmer would not even think on to do it
and in the idea of some of us even to often from a kind of C# thinking
(See
the long thread now active about passing the "").

I assume that you are talking about window forms projects.


Thanks. Yes this is a Windows Form project. And yes these are
definitely 'errors' - there are many other 'warnings' (it's a
reasonably large project). But the warnings I can understand for the
most part and deal with if necessary. The errors are stopping me
compiling the project under 2005.

I've found the Convert Project option, which seems to run -
unsurprisingly - if you open the 2003 project from its original
location in 2005. But AFAICS the code files (ie the .vb files) remain
unchanged.

I guess what I'm confused about is that the automatically-generated
form code, which is what is generating my errors, isn't changed in the
.vb files, yet something external to them is clearing the errors in a
converted 2005 environment. But until I understand this issue then I'm
not comfortable continuing to work in 2005 because I don't know how -
reliably - to make a new version of my project.

JGD

Feb 13 '06 #5
On Mon, 13 Feb 2006 12:57:43 +0100, "Cor Ligthert [MVP]"
<no************@planet.nl> wrote:
Can you give us an example in code?


Well if necessary I will, but it's not so much a specific error that
I'm concerned about, more that I don't understand or know how to do
something that's important to me. Can I go back to my original
question?

In the past under VB2003 I've always found it useful to version my
programs. In other words, when I've achieved a development milestone
with a given code version, to freeze that code and begin a new
development stage with a new copy of the code from the previous stage.

To do this, I start a new empty (eg WinForms) project with an
incremented name and with the files saved in a new folder location, eg
MyProject8xx, and with that project open then use 'Add Existing Item'
to import all the .vb files (and only the .vb files) from the previous
version.

This has worked fine in the past within VB2003. But in trying it under
VB2005 I get these various errors apaprently associated with the Form
Designer-generated code. This is true whether or not I try to import
the .vb files from an 'old' VB2003 folder or one that's been opened
under VB2005 and notionally converted.

It seems that there is something external to the .vb files that needs
importing too. (This seems a bit of a backward step or at least
inelegant in that the complete code for the converted file is no
longer contained within eg a form's .vb code. But be that as it
may...)

Is there a better way of versioning my projects under VB2005?

JGD
Feb 13 '06 #6
John,

You can copy complete folders to create those milestones. Is that what you
ask (I assume you are not using SourceSave). I do that for 2003 and for
2005.

Cor
Feb 13 '06 #7
No not using SourceSave, And yes folder copying is one option for the
milestone versions. But:

I did like the idea of importing individual .vb files because it meant
that by importing only those specific files I could clear out at
every stage any classes or forms that I had started but then thought
better of and subsequently discarded but not deleted. This 'cleaning'
process isn't quite as simple to apply with folder copies.

What is the minimum file/folder set that I can copy? Maybe I could
copy all of the files in the top level of the project folder but none
of the subfolders, ie \bin and the like. Yes I may need to reference
external dll's again but I don't mind that - it helps me to stop a
project going stale with references that are no longer needed. And a
recompile isn't a big deal.

And I need to increment the project name for the new version, but
maybe that's easy even after a folder copy. I'll need to check into
that.

JGD

On Mon, 13 Feb 2006 13:45:49 +0100, "Cor Ligthert [MVP]"
<no************@planet.nl> wrote:
John,

You can copy complete folders to create those milestones. Is that what you
ask (I assume you are not using SourceSave). I do that for 2003 and for
2005.

Cor


Feb 13 '06 #8
John,

A not converted VBNet form class has at least three files

The form.vb, the form.designer.vb and the form.resx

The same is with a generated dataset which has even more.

However there are more file types now. I would keep it with copying it
complete to a compressed folder.

Just my idea.

Cor
Feb 13 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: steve.anon | last post by:
Hi I'm a Java developer moving to windows only applications. Of course the first thing I thought was "well at least, without the VM now I can write desktop applications that run real fast". So I...
5
by: Ken Dopierala Jr. | last post by:
Hi, I'm in the middle of a project cycle using VS.Net 2002. I'd like to purchase VS.Net 2003 and make the jump to it but first I want to know how much of a hassle it is loading my VS.Net 2002...
0
by: Rich | last post by:
(1) Is there a better place to pose the question below? (2) I am starting to convert my enterprise solution from VS 2003 (.NET v1.1.4322) to VS 2005 Professional (.NET v2.0.50727). The entire...
7
by: NH | last post by:
Hi, I have a VS 2003 asp.net 1.1 project hosted on a windows 2003 server. I want to move it to asp.net 2.0 and VS 2005. Do I need to install VS 2005 on the server first and then on my...
2
by: Adam Hartshorne | last post by:
I have just upgraded to Visual Studio 2005 and have loaded in a project i have been working on, and the code compiles ok but fails to link correctly, as shown below. Any suggestions about what is...
3
by: Chris S | last post by:
We are moving from ASP.Net 1.1 to ASP.Net 2.0. As we do not have the luxury of spending weeks trying out different techniques, I'd like to rely on some tried and true methods, but need some...
4
by: =?Utf-8?B?R1Q=?= | last post by:
I have a Form which has a great number of events. I thought I would organize the project by moving some of the code into multiple '.cs' files (since the Form.cs was getting huge). When I move them,...
3
by: Claire | last post by:
Im transferring a visual studio 2003 project to Visual Studio 2005. The solution includes a windows installation project. With 2003 creating the setup got complicated with the crystal reports part...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.