VB.net code portability: newbie question

S

shibsen

Hi,

Can VB.NET create standalone .exe files that can be freely
distributed to Win2k/WinXP environments that do not have
a .NET environment (i.e. not having to worry about DLL dependencies)?
If so, can the basic/cheapest VB.NET version do this - how?

Apologies for a dumb newbie question!

cheers,

-shibsen
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed) (shibsen) scripsit:
Can VB.NET create standalone .exe files that can be freely
distributed to Win2k/WinXP environments that do not have
a .NET environment (i.e. not having to worry about DLL dependencies)?
If so, can the basic/cheapest VB.NET version do this - how?

No version of VB.NET can do that. The .NET Framework must be installed
on the machine running the application.
 
B

Brian Henry

yes they can be distributed if you want to be technical, but they will not
run until you have the .NET framework installed..
 
J

Jay B. Harlow [MVP - Outlook]

shibsen,
IMHO installing the .NET environment is largely independent of "worry about
DLL dependencies"!

As when you install the .NET environment (Framework really) you need to
install the .NET Framework with dotnetfx.exe! this setup program will
install all the required DLLs to run a .NET exactable.

http://msdn.microsoft.com/netframework/technologyinfo/redist/default.aspx

After the Framework is installed you can worry about DLL dependencies
between your executable and DLLs that you created or 3rd party DLLs. However
you do not need to worry about the Framework as dotnetfx.exe took care of it
for you!

Note: that the framework only needs to be installed once. For the most part
a .NET 1.0 executable will run with the 1.1 framework and a .NET 1.1
executable will run on the 1.0 framework. For details see:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/sidexsidenet.asp


Hope this made sense ;-)

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top