Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.29/5 (5 votes)
See more:
Hello CodeProject,
i have made one Application (launcher) which requires .net framework to execute, But i want to make this application to execute even without .net frameworks.
My application is coded on C#, and its not big thing if its possible on C++ or C i would make this program again on C++ or C
But i just need a little suggestion that is it possible to make application that run standalone without Net Framework requirement.
I know my Question is weird but that's it.
Thank you and hope my English is better to explain :)
Posted
Updated 12-Sep-14 12:17pm
v2
Comments
Pheonyx 12-Sep-14 18:21pm    
Why do you want it to be able to run without the .Net framework?
C# is a .Net language and as a result I don't believe it would be possible. You would have to write it in C++ or C to get close to making it non .net dependant.
UttamRabadiya 12-Sep-14 18:42pm    
Well as i said its one Launcher Application so many peoples use it and not all of them like to install net frameworks. so i wanted to make it run without .Net Framework version. and yap i got answer about C language to run without .Net and i guess i tried C++ and i think i will have to try it agian and thnx for the reply :)

There used to be a linker that would "link" the .NET Framework into your .EXE so you didn't have to install the .NET Framework separately. It hasn't been updated in about 6 years as far as I remember and it cost about $1,800.

Just rewrite it in C and be done with it.

You cannot run managed code, any language that targets the .NET Framework, without installing the .NET Framework first.
 
Share this answer
 
Comments
UttamRabadiya 12-Sep-14 18:30pm    
Hello sir,
Thank you for your answer.
So i can make Windows Application with C to work without .Net Framework?
if it is possible i will try it :)
[no name] 12-Sep-14 22:36pm    
A C application always works without .NET framework. C is a native programming language and so is C++.
Dave Kreskowiak 13-Sep-14 9:35am    
Yes, but your comment implies that there isn't a runtime for a C program. I assure you there is. Various versions of it are already installed with Windows.
[no name] 13-Sep-14 22:50pm    
I only said that a C program can run without .NET framework. C runtime isn't so heavyweight and most of the other programs already use it.
UttamRabadiya 12-Sep-14 19:01pm    
Hello Sir,
I found 2 Options to to compile my Program to work without .Net Framework. One is as you said Linker and another is Spoon.Net and i guess i will try both of them and if it work fine. And thnx for your answer its helped me :)
Use one of the many languages and development systems targeting native Window (or some other) OS. Using CLR without .NET installed does not seem really realistic. Better yet, ignore the problem. Develop for .NET and relax. First, there are less and less systems without .NET out there; secondly, you can always deploy .NET with your application:
http://msdn.microsoft.com/en-us/library/6hbb4k3e%28v=vs.110%29.aspx[^],
http://support.microsoft.com/kb/818016[^].

—SA
 
Share this answer
 
Is it not possible to run the .NET Application without the .NET Framework. Even now all the latest windows comes with the inbuild .NET Framework; or even it is freely available from net.

You an just include the .NET Framework in the Setup
 
Share this answer
 
Comments
UttamRabadiya 27-Sep-14 12:57pm    
Well sorry sir but guess maybe you didn't read whole thread, my application is one launcher without any installation. And this launcher is for game, and as far i know all peoples who played my game they don't use even Windows 7, most of them uses Windows XP i know its already expired from Microsoft but its truth that sitll many ppls use it and they don't install net frameworks :/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900