csharp without .Net framework

M

Mészáros Tamás

Is there any possibility to run a program written in c# without having .NET
Framework installed?
 
R

Robert Hooker

Most of what makes C# so cool is not actually C# - its the .NET Framework.
Its the classlibraries and consistent types and reflection and all of the
underlying platformetc. Take the .NET framework away and you are left with a
syntax only.

Think of it like this, replace ".NET" with "Windows", and "C#" with "C++"
and ask you question again - the answer is obvious really.

Original rephrased question:
Is there any possibility to run a [Windows] program written in _C++_
without having _Windows_ Framework installed?

The thing that makes C++ program written on Windows is - Windows, not C++.
 
G

Gabriele G. Ponti

Yes, the .NET Framework is required, but it's free. Your client won't need
Visual Studio .NET. only the framework.

John said:
So does it mean that if we want to build a standalone app and then deploy to
client's computer, ".net framework" is required prior to app installed ?
And it also means that the client need to purchase another .NetFramework
license ?

Thanks
John

"Robert Hooker" <[email protected]>
:[email protected]...
Most of what makes C# so cool is not actually C# - its the .NET Framework.
Its the classlibraries and consistent types and reflection and all of the
underlying platformetc. Take the .NET framework away and you are left with a
syntax only.

Think of it like this, replace ".NET" with "Windows", and "C#" with "C++"
and ask you question again - the answer is obvious really.

Original rephrased question:
Is there any possibility to run a [Windows] program written in _C++_
without having _Windows_ Framework installed?

The thing that makes C++ program written on Windows is - Windows, not C++.



M?z?os Tam? said:
Is there any possibility to run a program written in c# without having .NET
Framework installed?
 
A

Ashish Sheth

I think only CLR is needed to run the C# code plus the libraries which
are used and reference in your C# program.
I am not sure but tell me if I am wrong.
 
J

Jon Skeet

Mészáros Tamás said:
If I write a small Console Application, the whole .Net FrameWork (~20MB)
must be installed to be able to use it?

Yes - in the same way that if you write a small Windows application,
the whole of Windows needs to be installed to use it.
 
A

Ashish Sheth

I think with .NET Framework u people mean to say "CLR".
..NET framework consists of 2 components: "CLR" and "Framework Class
Library"(SDK). If u build a C# application(any application:windows,
console, web, windows services, web services or any other), and install
it on a client machine, client machine requires only CLR to run the
application, plus the libraries of the Framework class library which are
referenced in ur application(not the whole framework class library or
SDK)
I was first confused when u people say .NET framework is required
because I have always clearly distiguished between CLR and Framework
library.
 
M

Michael Giagnocavo [MVP]

Ok, and any program that does something will use some of the base
class libraries.... So, we say the .NET Framework to include both of
them. On top of that, there isn't a right way to install just the
needed libraries (which would create more hassle and problems along
the line). So, when someone asks this question (as they do every week
or so :)), people respond "yes, you need the .NET Framework" because
they need the CLR, the BCLs, and everything else installed with the
..NET Framework (tools, etc.).

-mike
MVP
 

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