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?

4
  • What? First of all, why would you want to run a C# app without having a framework installed? Commented Feb 8, 2011 at 8:13
  • Nope, not possible. Give up and learn C++ instead. Commented Feb 8, 2011 at 8: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 Commented Feb 8, 2011 at 8:18
  • There are some options (see the "psossible duplicate" above), but also consider .NET client profile, Silverlight, etc Commented Feb 8, 2011 at 8:19

4 Answers 4

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)

Sign up to request clarification or add additional context in comments.

Comments

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.

6 Comments

You can create installation package with Installshield, It packs required .NEt version into setup programm.
@Anton - which will... install the framework... which is exactly what the OP doesn't want.
@user: The .NET FW 4.0 Client Profile for 32-bit machines is under 30 MB. What do you consider "big size"?
@user547706 - maybe take a look at hanselman.com/smallestdotnet - this site will let you know the smallest .NET download suitable for your machine. It may not be as large as you think.
@Cody - he did say he developed for .NET 2.0.
|
1

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

Comments

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.