all groups > vb.net upgrade > august 2006 >
You're in the

vb.net upgrade

group:

A headscratcher here for sure


A headscratcher here for sure Earl
8/28/2006 10:59:36 PM
vb.net upgrade:
I had an old VB program that I pulled into VS2005 (VB.Net) to see if I could
get anything useful out of the upgrade wizard. Well the program did not have
a Sub Main, so I added that to a module and tried to set that as the startup
object. But now I have this error:

Error 1 'Sub Main' is declared more than once in 'MyUpgradedProject':
MyUpgradedProject.My.MyApplication.Main(Args() As String),
MyUpgradedProject.modFunctions.Main()

Did a search through both the project and the files and cannot find
My.MyApplication.Main. I'm guessing this is some reference that the upgrade
"wizard" created in a buried file. Any ideas?

Re: A headscratcher here for sure JWHM
9/4/2006 9:40:50 PM
Hi,

It might be in the generated code of your project. This is normally not
visible. Right Click in the source code of your form and select Go To
Defenition.

Good luck

JWHM

"Earl" <brikshoe@newsgroups.nospam> schreef in bericht
news:uu5TpcxyGHA.3280@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

Re: A headscratcher here for sure Earl
9/5/2006 2:39:07 AM
Good thought, but the search still should have found it (even in the XML
files). Once I got rid of all the old references and VB.Compatibility crap,
the message went away. I'm guessing it was buried in one of the
compatibility dlls.

"Upgrade" is such a misnomer for VB to VB.Net, especially if you have
anything non-trivial to "upgrade". Better to just rewrite it... in C#

[quoted text, click to view]

AddThis Social Bookmark Button