Run .net framework app without it

Status
Not open for further replies.

pankaj

Active Member
1,817
2009
149
20
I am making a application in C# with .Net framework 3.5 SP1 installed.
It's of nearly 300 MB. I don't think andyone wants to download 300 MB .NET Framework just to run my app.

After I finish creating my application, is it possible to convert it so that it can run in any machine (I mean Windows without .Net installed )

OR should I write my app in VB6.
 
12 comments
dont forget that alot of applications the user has installed may have already downloaded .NET,

Also .NET is usually downloaded via the Windows Update so the chances are the the user will have .NET installed.

If you dont want to take your chances you may have to redesign your application with another language supported without a framework.
 
Nope. But most people have .NET installed. I'd say about 60-70% have version 3.5 already installed. Nearly everyone has .NET 2.0 so you could switch your project to .NET 2.0. Or switch to .NET 4.0 which is only 50mb (recommended).
 
How to switch programming in C# to different versions of .NET ?

Out of 300 MB of .Net 3.5 , my code must not be even using 2 MB. There must be a way to extract those files and compile it.
 
The web installer still has to download and install the full thing so it boils down to the same thing.

Pankaj just makes the assumption that most people who want to use his app will have to download/install .NET while in reality most people already have the required version installed. .NET installs automatically with Windows updates etc. And most modern apps need .NET because it is the primary (and most used) Windows development platform.

Edit: http://msdn.microsoft.com/en-us/library/bb398202.aspx
 
Okay.

One more question.
When I installed C#, it required .NET 3.5 and if I change my project to .NET version 2 and uninstall .NET 3.5 . I know C# won't work, but will my project which is already converted to .NET 2 work ?
 
Just include a download link. You don't need to ship the thing yourself... FYI, every Windows since Windows 2000 has .NET. Everyone who uses MSN has .NET 2.0 or higher. Everyone who has a ATi gfx card has .NET 2.0 or higher. Everyone who has a game installed that uses Windows Live has .NET 3.0 or higher. Etc etc. Maybe not many people do where you live but that is not the global picture.

I never had any issues with what you're concerned about so you have nothing to worry about.
 
I don't know. And it isn't important because Windows itself has .NET pre-installed.

These versions of windows have 3.5 installed:
- XP SP3
- Vista SP1
- Win7

Even other versions most likely have .NET 3.5 because of Windows updates and all the other software that requires it. As I said, don't worry about it.
 
there are a lot's of .net appz out there. so most people already got .net framework 3.5
and most wouldn't mind downloading extra 300MB for micro$oft's site.
 
Status
Not open for further replies.
Back
Top