How to Run C# Exe without .Net Framework
How to Run C# Exe without .Net Framework
I am using Visual Studio 2010. I made a C# project and it runs perfectly on my Computer.
Problem is this that when Application is run on another Computer, that ask for .Net Framework. Everybody doesn't have administrator Access to install .Net Framework and also peoples don't want to install that.
What alternative i should follow to sort out this problem? (Specifically for Windows 7).
Answer by Task for How to Run C# Exe without .Net Framework
The only alternative is to not use a programming language that is based on the .net framework.
If you're writing a c# application, then the .net framework is required.
Perhaps you want to create a c++ application instead?
Answer by Artem Chilin for How to Run C# Exe without .Net Framework
No way! CLR is absolutely needed for managed apps.
Answer by ScorpiAS for How to Run C# Exe without .Net Framework
Correct me if I am wrong but windows 7 comes with .Net framework installed. Windows Vista comes with installed .net framework and I believe this is valid for windows 7 as well. And to answer your question - it is not possible to run the exe on a machine that does not have the framework as the program compiles to intermediate language that is only "understandable" by the Common language runtime(CLR)
Answer by Ucodia for How to Run C# Exe without .Net Framework
If you are targeting Windows 7 or later version of the OS, then just compile your program using C# 3.5. The version 3.5 of the framework is part of Windows 7.
I guess you were compiling C# 4.0 code.
Answer by Sri Harsha Chilakapati for How to Run C# Exe without .Net Framework
Windows contains a version of .NET by default. Here's a listing of them.
XP
- .NET v1.0 -- Service pack 1
- .NET v2.0 -- Service packs 2 & 3
Vista
- .NET v3.0 -- All service packs
Windows 7
- .NET v3.5 -- All versions and service packs
Windows 8
- .NET v4.0 + Metro UI available.
Windows 8.1
- .Net v4.5 + Metro UI available.
Windows 10
- .Net v4.6 + Metro UI + Universal Apps available.
Note:
All contains .NET v4.6 if Windows Update is enabled. (Not for all versions of windows)
Options of deployment:
There are several options of deployment.
Checking for .NET in installation. (Install systems like NSIS support this). See this for more info.
If you want to deploy portable app, notify users to install the required .NET version. (easier)
Target .NET 2.0 and all users are able to run your app since I think nobody is using XP SP1. (easiest. I use this to deploy mine.)
EDIT
There needs some clarity with some other answers, so I'm quoting 0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+1);}
0 comments:
Post a Comment