1

Possible Duplicate:
Running .net based application without .NET Framework

Hello. Please let me know how I can run C# windows application in Windows XP without installing .NET Framework?

Community
  • 1
  • 1
Osama khodroj
  • 1,230
  • 2
  • 23
  • 29
  • What? First of all, why would you want to run a C# app without having a framework installed? – alex Feb 08 '11 at 08:13
  • Nope, not possible. Give up and learn C++ instead. – Cody Gray - on strike Feb 08 '11 at 08:17
  • a C# app can be ran without .NET because it must not use the .NET-Framework but there wouldn't be much benefit without .NET. And if it is a .NET application then you need the .NET-Framework to run it – Fender Feb 08 '11 at 08:18
  • There are some options (see the "psossible duplicate" above), but also consider .NET client profile, Silverlight, etc – Marc Gravell Feb 08 '11 at 08:19

4 Answers4

2

You can't.

The framework and runtime need to be present for any .NET application to run.

It's like wanting a java program to run without installing a JRE.

Oded
  • 489,969
  • 99
  • 883
  • 1,009
2

C# apllication not handled by operating System. Its CLR(inside framework) who take care to run the C# apps and all memory management, resource allocation, de-allocation etc. It create a virtual layer over OS while runnign its application. So you must need framework(more than or equivalent to 2.0 as you said)

PawanS
  • 7,033
  • 14
  • 43
  • 71
1

Hmmm. I think You have no way except installin .NET 2.0 on target machine

Anton Semenov
  • 6,227
  • 5
  • 41
  • 69
1

I would say that you have no way to run what sits on .NET without installing the .NET Framework, this is the short answer.

Long answer is that there are some kind of softwares which pack all required dependencies ( and only the required ones ) into a bigger executable.

Davide Piras
  • 43,984
  • 10
  • 98
  • 147