Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i make my C# console application able to run without .Net frame work e.g convert it to native c++ code or to some other method so that it will run without .Net frame work.
Posted

Your C# application cannot run without the CLR. Of course, converting the code to a C++ console application would make the trick.
 
Share this answer
 
You can't in practice, because C# was designed with the .NET framework in mind - and without it it can't do anything! The Console class is part of .NET, every variable you try to create is a .NET Object.

And I know of no converter than can re-code C# to native (Non-CLR) C++
 
Share this answer
 
Comments
Albert Holguin 23-Apr-14 10:32am    
I know of one converter... the do it by hand converter... :p
OriginalGriff 23-Apr-14 10:38am    
Are you volunteering? :laugh:
Albert Holguin 23-Apr-14 10:44am    
Only if it's URGENTZ
I agree with the other answers. "Converting" is best done by a competent programmer who can replicate the functionality of the c# program. This may not be possible if the .net program uses a lot of the features available in .net.

If it is a small program you can try this for free. I've no idea of the results.
http://www.tangiblesoftwaresolutions.com/Product_Details/CSharp_to_CPlusPlus_Converter_Details.html[^]
 
Share this answer
 
Comments
Albert Holguin 23-Apr-14 10:32am    
I wouldn't say it's not possible, more like it's hard but not impossible.

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