Link to home
Start Free TrialLog in
Avatar of moellert
moellert

asked on

How to come around the need of .NET 2.0

I have written a small app with VB Express Edition. When starting it on a different PC it errors out with the message to install .NET Framework 2.0 first.

My app only uses 3 .dlls

-system.dll
-system.drawing.dll
-system.windows.forms.dll

Is there any chance to come around this requirement?
I don't want to force my users to install 22MB framework to use a 280kb app.

 

Thanks for helping a newbie
Thomas
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Hello moellert,
for .net 2.0 apps to work you need the .net 2.0 framework, there is no way around that
bruintje
Avatar of Leo Eikelman
Leo Eikelman

Is it possible to rewrite the app using vb6 or do you need to use these framework 2.0 dlls?

Leo
.Net framework is used by many purchased applications, it may already be on a user's machine.  Check out http://www.httprevealer.com/usage_dotnet.htm to see how to test if the framework is present.
Avatar of moellert

ASKER

I have just downloaded VB Express Edition as it is for free. I have never used any .NET components knowingly. So I do not know why the Express Edition choose them. I would be glad to remove the dependency if I know how to do.
I have never used VB Express Edition, but you should be able to remove dependecies in 1 of 2 ways.

1.  Under Project menu, select references and unselect the ones using the .NET components

2.  Open the .vbp file in notepad and you will see the dependecies at the top.  Delete the ones you want.  (It should show you the .dll name for each one)

Leo
vb express needs the .net framework
most windows clients already have version 1.1 but vb express needs .net 2.0 explicitly
And VB6 does not need .NET framework?

and yes it is possible to rewrite in vb6, but be prpared to do some api digging.


this is a pretty big list of api functions:
http://www.allapi.net/apilist/apilist.php
Can't run a VB program without the runtime.  The download is much smaller than .Net framework.  More at: http://www.softwarepatch.com/windows/vbrun6.html
Keep in mind that the .NET 2.0 Framework is a 1 time install.  Once it is installed, you don't need to re-install it with every application.  Just like the VB6 run-time files, your VB6 app won't run without those, but you only need to install them once.  

If the application you created is an important one that will need to be used for the long haul, I'd recommend sticking with VB.NET since that is the platform that MS is actively supporting.  It might be a bit of a pain to have to install the .NET 2.0 framework at the moment, but there will be a time when the .NET 2.0 framework will be as common as the current VB6 run-time files and you won't need to worry if they are installed or not.

Just my 2 cents....  :)
I don't think the .NET 2.0 framework is going to be as popular as the VB6 run time.  If it isn't too dificult to rewrite the application in VB6 I say rewrite it in VB6.

Leo
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial