Documente Academic
Documente Profesional
Documente Cultură
{ public static void Main(string[] args) { Console.WriteLine(Hello! World); Console.ReadLine(); } } Save the file in convenient location as Test.cs. In the command line, type csc Test.cs. An exe file is generated with name Test.exe. Some of the output centric options available in C# compiler are:
To specify the type of target, we can use csc /target:exe Test.cs. We can also use csc /t:exe Test.cs. Test.exe can now be run from the command line.
Kaustubh S, Lecturer Dept of Information Science and Engg Acharya Institute of Technology, Bangalore
3 Building C# Applications
This generates a new file named test.pdb. Open a session with cordbg.exe by specifying the .NET assembly as command line argument. Cordbg.exe test.exe When you wish to quit debugging, type exit or ex.
5 Building C# Applications
Kaustubh S, Lecturer Dept of Information Science and Engg Acharya Institute of Technology, Bangalore
Support for Microsoft Office development The ability to track changes for a given source document and view revisions Integrated support for code refactoring An XML based code expansion library Visual class design tools and object test utilities A code definition window
The solution explorer utility allows you to view the set of all content files and referenced assemblies that comprise the current project. The references folder of solution explorer displays the list of each assembly you have currently referenced. When you need to reference additional assemblies, right click the references folder and select add reference. Select the assembly from the resulting dialogue box. When you double click the icon named properties, you are presented with the enhanced project configuration editor.
Kaustubh S, Lecturer Dept of Information Science and Engg Acharya Institute of Technology, Bangalore
7 Building C# Applications
An enhanced version of this tool has been integrated with visual studio 2005. Place the mouse pointer over any type in your C# code file; you will be presented with the snapshot of the type. For example, if you click on the String in any method, you find the definition of System.String class type.
Kaustubh S, Lecturer Dept of Information Science and Engg Acharya Institute of Technology, Bangalore
9 Building C# Applications
Snippets: These templates insert common code blocks at the location of the mouse cursor. Surround with: These templates wrap a block of selected statements within a relevant scope. Right click on the blank line within your Main() method and activate the insert snippet menu. Once you select a given item, you will find the related code expanded automatically. If you right click and select surround with menu, you would be presented with a list of options.
Kaustubh S, Lecturer Dept of Information Science and Engg Acharya Institute of Technology, Bangalore