logo
CSharp_Prog_Guide

Стеки навигации

Visual Studio следит за движениями курсора и записывает их в стеки навигации. При помощи сочетания клавиш CTRL+- (минус) можно вернуться к предыдущему положению курсора, а используя CTRL+SHIFT+- (минус) — перейти вперед к последнему положению курсора в стеке навигации. Переходить по стекам можно также при помощи команд Назад и Вперед в меню Вид.

В Visual Studio также используется отдельный стек навигации для отслеживания перемещений курсора для вызовов Перейти к определению. Чтобы вернуться к положению курсора при вызове команды Перейти к определению, используйте сочетание клавиш CTRL+SHIFT+8. Для перехода вперед по стеку навигации следует использовать сочетание клавиш CTRL+SHIFT+7.

Building and Debugging

In Visual C#, you build an executable application by clicking Build on the Build menu (or pressing CTRL+SHIFT+B). You can build and start the application in one operation by pressing F5 or clicking Run on the Debug menu.

Building involves inputting your project files into the C# compiler, which converts your source code to Microsoft intermediate language (MSIL) and then joins the MSIL with the metadata, resources, manifest and other modules, if there are any, to create an assembly. An assembly is an executable file that typically has an extension of .exe or .dll. As you develop your application, you will sometimes want to build a debug version of it in order to test it and see how it runs. Finally, when everything is correct, you will create a release version that you will deploy to customers.

Build Settings

To specify various build settings, right-click the project item in Solution Explorer and then select the Build pane in the Project Designer.

Build Errors

If there are errors or identifiers that cannot be resolved to a known type or member in your C# syntax, your build will not succeed and you will see a list of errors in the Error List Window, which appears by default directly below the code editor. You can double-click an error message to go to the line in your code where the error occurred.