.net framework

I

id10t error

I know this is not really a development problem but why do you have to
install the .net framework to run a vb.net program?
 
T

Tom Shelton

I know this is not really a development problem but why do you have to
install the .net framework to run a vb.net program?

Because VB.NET programs rely on the framework.
 
A

Armin Zingler

id10t error said:
I know this is not really a development problem but why do you have
to install the .net framework to run a vb.net program?

Because even the type Integer is defined in the Framework.
Or because the Framework does the just-in-time compilation (JIT).
Or because the Framework is responsible for memory management including
garbage collection.

Overview:
http://msdn2.microsoft.com/en-us/library/a4t23ktk.aspx
(and sub topics)


Armin
 
I

id10t error

Because VB.NET programs rely on the framework.

I know that much. Is there a techinical way. I am working on a project
and I have to explain to a group of no computer users why I need to
install the framework. and becuuse VB.NET programs rely on the
framework will not work.
 
P

Patrice

The .NET Framework contains the executable code for all the classes your
program uses. In turns those classes are calling Windows functions so you
have also to have Windows installed and a function could call a disk driver
so you need to have a disk driver installed etc...

The idea is that if you are talking just to the .NET layer then this layer
could be built on top of another OS (such as for the mono project
http://www.mono-project.com/Main_Page) or that MS could one day decide to
create an OS where managed code would be a first class citizen as most code
won't call directly the lower level functions provided by Windows...

Third party producs are supposed to include all is needed in a single
executable but IMO it quite defeat the purpose of having a common runtime
spreaded everywhere and that you have to install once for all...
 
T

Tom Shelton

I know that much. Is there a techinical way. I am working on a project
and I have to explain to a group of no computer users why I need to
install the framework. and becuuse VB.NET programs rely on the
framework will not work.

Well, ok. There are number of technical reasons - all of the built in
datatypes are defined in the framework. All of the libraries needed
from File IO to drawing a Button on the screen are defined in the
framework. The IL that the compiler generates is executed via the
framework, and all of the security built into that process.

Basically, there is nothing that VB.NET can do with out it. If
installing the framework is an issue, then you are probably better off
doing your project in another langauge...
 
K

kimiraikkonen

I know this is not really a development problem but why do you have to
install the .net framework to run a vb.net program?

One of reason: Because you develop application using this framework
and its libraries etc. And framework must be present on target machine
to translate this .NET-powered into work.
 
M

Miro

Explain to the non technical guys that:

VB.net is a Book/Novel written in an unknown language

the .Net framework lets the computer know its in "english" and lets the
comptuer "read" and "run" the Book/Novel.

Without 1 or the other the 2 objects are usless.
You cant read a book you dont know what language its in
-if to start from front to back - back to front and so on.

I explained it like that once to a non computer person and it seemed to do
the trick.
 
H

Herfried K. Wagner [MVP]

Armin Zingler said:
Because even the type Integer is defined in the Framework.
Or because the Framework does the just-in-time compilation (JIT).
Or because the Framework is responsible for memory management including
garbage collection.

Overview:
http://msdn2.microsoft.com/en-us/library/a4t23ktk.aspx
(and sub topics)

This doesn't answer the follow-up question why the .NET Framework isn't part
of each version of Windows ;-).
 
R

RobinS

Herfried K. Wagner said:
This doesn't answer the follow-up question why the .NET Framework isn't
part of each version of Windows ;-).

The .Net Framework is not included in any version of Windows prior to Vista
and is not a required update (or even a critical update) purely to make
developers' lives more difficult when it comes to deploying their
applications.

That's my theory, anyway. ;-)

RobinS.
GoldMail, Inc.
 
P

Phill W.

id10t said:
I know that much. Is there a techinical way. I am working on a project
and I have to explain to a group of no computer users why I need to
install the framework. and because VB.NET programs rely on the
framework will not work.

I suspect that, as is so often the case with the people responsible for
acquiring software, they don't have the faintest idea what they're
talking about.

Sadly, you are now left in an unhappy bargaining position: If they want
your program then they're going to /have/ to get the Framework as well.
There are two proviso to that:
(1) Windows Vista already ships /with/ it. If(?) you're lucky(??)
enough to be deploying to Vista machines, then at least /you/ won't have
to worry about installing it, and
(2) The Framework will not run on /anything/ before Windows 98. (Yes,
there are still some out there).


It is simply /impossible/ to write a Visual Basic application that
doesn't use the Framework. You /can/ do so with C++ (and /possibly/
unmanaged C#) but VB? No. If they want your program, then they're
going to have to have the Framework as well.

The principle is no different to other languages that have "run-time
libraries":

VB "Proper" (6 and earlier) had a 6MB[-ish] run-time and lots of people
installed it at the same time as their applications - users simply
didn't notice.

Java has its own run-time (no idea how big that one is). Again, I've
seen several application that download it as part of their own
installation.

The [.Net] Framework is partly Visual Basic's run-time and partly the
"infrastructure" that loads and links your program, method-by-method,
into x86 machine instructions that a PC can actually execute (the
"program" that comes out of the Visual Basic compiler is completely
meaningless to a PC without the Framework to translate it).

HTH,
Phill W.
 
P

PvdG42

On Feb 7, 1:56 pm, Tom Shelton

I know that much. Is there a techinical way. I am working on a project
and I have to explain to a group of no computer users why I need to
install the framework. and becuuse VB.NET programs rely on the
framework will not work.


I'm a bit confused. Do you mean a technical or nontechnical explanation? I
ask because of your phrase "I have to explain to a group of no computer
users..." above. Did you mean non-computer users and thus want an
explanation in layman's terms?
 
G

Guest

This doesn't answer the follow-up question why the .NET Framework
isn't part of each version of Windows ;-).

<sigh> and now there is Silverlight. Too many runtimes.
 

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