Share via


Writing and Changing Application Code

You and your team spend most of a development cycle performing various iterative development tasks. Each of these tasks might include the following:

  • Understand the task.

  • Synchronize your development environment.

  • Check out files, and make necessary changes to the code.

  • Refactor the code and data.

  • Build and deploy the project in your isolated development environment.

  • Test your changes, which might include generating test data.

Common Tasks

In the following table, you can find descriptions of common tasks that support this scenario and links to more information about how you can successfully complete those tasks.

Task

Supporting Content

Identify and understand the task: In a team environment, your work often corresponds to a work item in Visual Studio Team Foundation Server. After you find and understand the work item, you might have to learn about the code that you will be changing.

Synchronize your development environment: Before you begin a task, you might have to retrieve the current version of the project from version control. If changes were made to the production or staging server that are not reflected in the project, you might need to update the project before you begin your development task.

Modify the code for the project: To complete the development task, you must typically modify code in one or more projects. Use the editor or designer that is appropriate for the type of code that you are modifying.

Refactor the code: You can use refactoring to eliminate some repetitive and error-prone tasks, such as renaming all references to an object or removing parameters.

Visual C#

Visual Basic

Build and deploy changes to your isolated development environment: After you modify the project, you build and deploy the changes to your isolated development environment. You can test your changes in isolation before you share them with other team members.

See Also

Concepts

Writing and Changing Database Code

Identifying Code Change Impact on Tests

Verifying Code by Using Unit Tests

Verifying Database Code by Using Unit Tests

Analyzing Application Quality by Using Code Analysis Tools

Completing Development Tasks

Other Resources

Debugging in Visual Studio

Analyzing Application Performance by Using Profiling

Measuring Complexity and Maintainability of Managed Code