Creating an executable program - Object-oriented programming

Creating an Executable Program

As it was explained, to convert the source code of the program in C # into the executable module for the .Net platform, the csc.exe compiler is used:

csc.exe & lt; filename with the program & gt; [compilation options]

This compiler has many different options, of which the main ones are:

•/target: [exe | winexe | library | module] - the type of the module being created: exe - console application (by default); winexe - Windows application; library - a class library (without the Main method); module - module (no declaration is added to the module);

•/reference: & lt; file list & gt; - Assembly names (own or from FCL), which will be referenced in the module being created; the basic FCL assemblies (such as System.dll) are connected by default, and they need to be specified;

•/out: & lt; filename & gt; - the name of the module being created, if it does not match the name of the input file.

To simplify and automate the development of C # programs, it's better to use one of the integrated development systems of Visual Studio .Net Professional (VS Professional) or Visual C # Express Edition (VS EE), not the compiler itself. It should be noted that they themselves also use the C # compiler, but in addition, they provide a large number of tools for automating the creation and debugging of programs. The logic of working with these systems is largely similar. In this manual, only some basic concepts of these development systems will be considered.

The Visual C # Express Edition development system allows you to create only console and Windows applications in C #. And the Visual Studio .Net Professional system allows you to create console, Windows and web-applications in different languages. Application development in these systems is based on the concept of project , which means a lot of files with class descriptions, references to the assemblies used, with other data types, and with parameters for running the compilation. All project files are stored in one (specially created) folder. In addition to the concept of a project, the concept solution is used. The solution contains one or more projects , the resources required by these projects , possibly additional files not included in the projects. One of the decision projects should be specified as starting project. The solution begins with the start project. Projects of one solution can be dependent or independent. By changing the starting project , we get the ability to go to the desired example. Note that the startup project must have an entry point - a class containing a static method named Main (), which is automatically passed control when the decision is started. In the existing solution , you can add both new and existing projects. For each solution, a folder is created in the specified location. In this folder, for each solution project, you create your own subfolders, which will create other subfolders with the results of compiling the application.

Project - is the basic unit with which the programmer works. It chooses the type of the project , and Visual Studio will create the skeleton of the project according to the selected type.

Also We Can Offer!

Other services that we offer

If you don’t see the necessary subject, paper type, or topic in our list of available services and examples, don’t worry! We have a number of other academic disciplines to suit the needs of anyone who visits this website looking for help.

How to ...

We made your life easier with putting together a big number of articles and guidelines on how to plan and write different types of assignments (Essay, Research Paper, Dissertation etc)