Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,062 members, 7,956,968 topics. Date: Tuesday, 24 September 2024 at 12:39 AM |
Nairaland Forum / Science/Technology / Programming / How To Run C# Codes Without Having To Install Visual Studio (2058 Views)
I Need Help On Visual Studio 2008 / Matlab And Visual Studio Expert Needed / Metroframework For C# Applications In Visual Studio (2) (3) (4)
How To Run C# Codes Without Having To Install Visual Studio by project7(m): 11:06am On May 20, 2016 |
For those that want to learn c# or test a simple code but do not want the burden of having to install the heavy resource consuming visual studio, you can do this. All that is needed is to make sure your computer has the .NET framework already installed and a c# compiler exist in the computer. To confirm this, check that the c# compiler (csc.exe) is in the location: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\ 1) Now create a folder where you want your program. 2) In the folder create a .BAT file with the content below. // my-folder/compile-and-run.bat C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\csc.exe program.cs program.exe pause 3) Also in the folder create a .CS file with your c# codes. // my-folder/program.cs using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication { class Program { static void Main(string[] args) { Console.WriteLine("Hello, world!" ); Console.ReadLine(); } } } 4) Run the .BAT file to compile your program and run it. |
Re: How To Run C# Codes Without Having To Install Visual Studio by Nobody: 11:19am On May 20, 2016 |
Only console program you can't use xaml or windows form application . ideone is better . Download visual studio . Nice tutorial , keep it up . |
Re: How To Run C# Codes Without Having To Install Visual Studio by Nobody: 2:05pm On May 20, 2016 |
Re: How To Run C# Codes Without Having To Install Visual Studio by project7(m): 12:57pm On May 21, 2016 |
DanielTheGeek: Not everyone has the privilege to have their computer connected to the internet all the time. |
Re: How To Run C# Codes Without Having To Install Visual Studio by project7(m): 1:03pm On May 21, 2016 |
proxy20: Not everyone has the privilege to install Visual Studio on all the computers he or she has access to. And also some chap might be on http://www.dotnetperls.com/ studying c# and need to try out the example codes there. I personally spent 6 months looking for a visual studio CD four years ago you might not get one readily but need to test some codes. Thanks. |
Re: How To Run C# Codes Without Having To Install Visual Studio by Nobody: 12:26am On May 22, 2016 |
proxy20: You can write a windows form appliaction in C# with notepad, this method is for you if you don't want to use visual studio.net
|
Re: How To Run C# Codes Without Having To Install Visual Studio by Nobody: 12:40pm On May 22, 2016 |
Febup:it may not work when coding advance winform Controls . It is still limited . |
Re: How To Run C# Codes Without Having To Install Visual Studio by Nobody: 12:44pm On May 22, 2016 |
proxy20: No, in fact you can do more advance stuff without IDE only it will be time consuming. |
Re: How To Run C# Codes Without Having To Install Visual Studio by Nobody: 12:55pm On May 22, 2016 |
Febup: lol , like wasting the whole day compiling the code on command prompt without detecting the errors quickly . This is 2016 not 2000 . Errors will make you tired and quit the program . |
Re: How To Run C# Codes Without Having To Install Visual Studio by Nobody: 1:03pm On May 22, 2016 |
proxy20: You are right mate! |
(1) (Reply)
Java / I "Tried" To Clone This Website From Scratch With HTML /CSS. / Do Not Reinvent The Wheel Unless You Plan On Learning More About Wheels
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 14 |