logo
CSharp_Prog_Guide

Файлы проекта

Все шаблоны проекта создают и сохраняют файл проекта, в котором хранятся метаданные, связанные с данным проектом. Этот файл проекта создается и сохраняется при работе в интегрированной среде разработки (IDE). Расширение и фактическое содержимое файла проекта зависят от типа проекта, поэтому полное описание файла не может быть приведено в рамках данного раздела.

Как правило, в файле проекта хранятся настройки конфигурации и построения, заданные для проекта, а также набор элементов. В некоторых проектах ведется список файлов, связанных с проектом, и сохраняется их расположение.

При добавлении элемента к проекту физическое расположение исходного файла на диске также добавляется к файлу проекта. Когда ссылка удаляется из проекта, эти сведения удаляются из файла определения. Шаблон проекта определяет, какие команды доступны для каждого элемента.

Project Items

Project items can be files, references to libraries, data connections, and folders that are within the project container. Some items represent a physical item you can locate in storage. Other items are links and represent pointers to other items that may reside within a service, module, or other component.

However, most of your work is likely to be on the files you use to determine the parts of your application. How these files are managed within a project is determined by the project itself. Solution Explorer displays the file or set of files needed to develop that item.

All Visual Studio development products provide a number of pre-defined item templates. You can use one of the many templates to create the items that you might need to develop your application, class, control, or library. For example, if you chose to create a Windows form, the project offers a Windows form item for you to add and customize. Similarly, if you chose to create a Web application, the project offers a Web form item.