Portable C # IDE / Compiler?

I am learning C #, but the fact that it requires an IDE with a compiler makes things a bit more complicated. The main computer that I have access to is my school computer, on which I do not have administrator rights. Is there a way to host a C # IDE / compiler there without requiring administrator privileges?

Please keep in mind that I want to be able to develop at home with VS C # 2010 and transfer the project to my school computer.

+7
source share
3 answers

C # does not require any IDE. The compiler (csc.exe) is part of the .NET Framework, and you can use it if the machine has a version of .NET installed.

those. for path 2.0 to the compiler% Windir% \ Microsoft.NET \ Framework \ v2.0.50727 \ csc.exe

You can start it from the command line (Start-> run-> cmd) and see options such as "csc /?".

+8
source

SharpDevelop can be launched from memorystick

+7
source

I am learning C #, but the fact that it requires an IDE with a compiler makes things a bit more complicated.

Only a .Net SDK is required to create a C # application, and it does not need an IDE.

Part of the SDK is csc.exe , which is a C # compiler.

With the SDK installed, you can compile and run the program in C # as follows:

using System; namespace SampleApplication { static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { Console.WriteLine("Hello world!"); } } } 

using this command line.

 C:\TEMP>csc test.cs Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.4918 for Microsoft (R) .NET Framework version 3.5 Copyright (C) Microsoft Corporation. All rights reserved. C:\TEMP>test.exe Hello world! 
+3
source

All Articles