You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/debugger/hot-reload.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ monikerRange: '>= vs-2022'
16
16
17
17
Starting in Visual Studio 2022, the Hot Reload experience in Visual Studio works for both managed .NET and native C++ apps. Regardless of the type of app you’re working on, the intention of Hot Reload is to save you as many app restarts between edits as possible, making you more productive by reducing the time you spend waiting for apps to rebuild, restart, re-navigate to the previous location where you were in the app itself, et al.
18
18
19
-
We accomplish this by making it possible for you to edit your application's code files and apply the code changes immediately to the running application, also known as *Hot Reload*. Once your changes are applied, re-execute your code again by taking an action in the app itself (or through some sort of timer, etc.) and see the changes immediately; no pausing of the app through breakpoints is required!
19
+
We improve productivity by making it possible for you to edit your application's code files and apply the code changes immediately to the running application, also known as *Hot Reload*. Once your changes are applied, re-execute your code again by taking an action in the app itself (or through some sort of timer, etc.) and see the changes immediately; no pausing of the app through breakpoints is required!
20
20
21
21
## Update running code with Hot Reload
22
22
@@ -34,9 +34,9 @@ To see the changes in the user interface, the code needs to be re-executed. For
34
34
35
35
## Support for .NET applications
36
36
37
-
***When using Visual Studio 2022 and starting your app with the debugger**, the basic Hot Reload experience works with most types of .NET apps and framework versions. This includes .NET Framework, .NET Core and .NET 5+ (for both C# and Visual Basic as applicable). The expectation in this scenario is that if you’re using the debugger, assume Hot Reload is available to you and give it a try!
38
-
***When using Visual Studio 2022 but not using the debugger** (for example, using CTRL-F5 to start the app), Hot Reload is available when targeting most types of .NET 6 apps. This means that apps not targeting .NET 6 (.NET 5 or below) don't support the "no debugger" scenario and must use the debugger to get Hot Reload support.
39
-
***When using Visual Studio 2022 with a .NET 6 app, most scenarios are supported**. This isn't limited to the new "no debugger" feature mentioned above. It also includes other new capabilities, such as support for hot reloading Blazor projects and, more generally, editing Razor files in any ASP.NET Core apps, and CSS Hot Reload. Using Visual Studio 2022 and apps that target .NET 6 together will give you the most powerful Hot Reload experience.
37
+
***When using Visual Studio 2022 and starting your app with the debugger**, the basic Hot Reload experience works with most types of .NET apps and framework versions. This support includes .NET Framework, .NET Core and .NET 5+ (for both C# and Visual Basic as applicable). The expectation in this scenario is that if you’re using the debugger, assume Hot Reload is available to you and give it a try!
38
+
***When using Visual Studio 2022 but not using the debugger** (for example, using CTRL-F5 to start the app), Hot Reload is available when targeting most types of .NET 6 apps. In this scenario, apps not targeting .NET 6+ (that is, they target .NET 5 or below) don't support the "no debugger" scenario and must use the debugger to get Hot Reload support.
39
+
***When using Visual Studio 2022 with a .NET 6+ app, most scenarios are supported**. This support isn't limited to the new "no debugger" feature mentioned above. It also includes other new capabilities, such as support for hot reloading Blazor projects and, more generally, editing Razor files in any ASP.NET Core apps, and CSS Hot Reload. Using Visual Studio 2022 and apps that target .NET 6 together gives you the most powerful Hot Reload experience.
40
40
41
41
The following table shows which projects support .NET Hot Reload with the debugger attached (F5) and without the debugger attached (Ctrl+F5), according to the minimum .NET version required for support in Visual Studio 2022 (17.8).
42
42
@@ -54,13 +54,13 @@ The following table shows which projects support .NET Hot Reload with the debugg
54
54
55
55
The [types of edits you can make](../debugger/supported-code-changes-csharp.md) with Hot Reload are determined by the runtime and compiler version, not by the method you used to start the application (F5 or Ctrl+F5).
56
56
57
-
In the following sections, we’ll expand on the above summary and dive into more details.
57
+
In the following sections, we provide additional details.
58
58
59
59
## Support for C++ applications
60
60
61
61
When using Visual Studio 2022 and starting your app with the debugger, you can hot reload a native C++ application when running under the debugger (F5) using the **Hot Reload** button. Hot Reload is also supported for apps built using CMake and OpenFolder projects.
62
62
63
-
In order for your project to support Hot Reload, you will need:
63
+
For your project to support Hot Reload, you need the following options set:
64
64
65
65
* Project > Properties > C/C++ > General > **Debug Information Format** must be set to "Program Database for Edit and Continue `/ZI`"
66
66
* Project > Properties > Linker > General > **Enable Incremental Linking** must be set to "Yes `/INCREMENTAL`"
@@ -74,15 +74,15 @@ When using Visual Studio 2022 and starting the app with the debugger, Hot Reload
74
74
Anywhere you have .NET and you’re using the Visual Studio managed debugger, you should get basic Hot Reload support. This fact means that even projects such as Azure Functions work great in this scenario.
75
75
76
76
> [!NOTE]
77
-
> Some projects use by default mixed mode debugging, which does not support Hot Reload. You can modify this in project settings, by setting **Project > Properties > Debug > Open debug launch profiles UI > Enable native code debugging** to false.
77
+
> By default, some projects use mixed mode debugging, which does not support Hot Reload. You can modify this setting in project settings, by setting **Project > Properties > Debug > Open debug launch profiles UI > Enable native code debugging** to false.
78
78
79
79
## Visual Studio 2022 with a .NET app, but not using the debugger
80
80
81
81
Hot Reload is available without the debugger when targeting most types of .NET 6+ apps.
82
82
83
-
This feature is exclusive to .NET 6+. Those apps not targeting .NET 6+ (that is, .NET 5 or below) will not support the "no debugger" scenario and must use the debugger to get access to Hot Reload functionality.
83
+
This feature is exclusive to .NET 6+. Those apps not targeting .NET 6+ (that is, they target .NET 5 or below) do not support the "no debugger" scenario and must use the debugger to get access to Hot Reload functionality.
84
84
85
-
Also, be aware that not all project types currently support the "no debugger" scenario, see [Support for .NET applications](#support-for-net-applications).
85
+
Also, not all project types currently support the "no debugger" scenario, see [Support for .NET applications](#support-for-net-applications).
Copy file name to clipboardExpand all lines: docs/get-started/includes/git-source-control.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
ms.date: 04/18/2024
2
+
ms.date: 12/04/2024
3
3
ms.subservice: general-ide
4
4
ms.custom: vs-get-started, devdivchpfy22
5
5
ms.author: ghogen
@@ -37,13 +37,13 @@ To associate your code with Git, start by creating a new Git repository where yo
37
37
## Use Git actions in Visual Studio
38
38
39
39
Here's a brief summary of Git actions available in the Visual Studio status bar:
40
-
41
-
- The **Up/Down** arrows show how many outgoing/incoming commits are in your current branch. You can use this icon to pull any incoming commits or push any outgoing commits.
42
-
40
+
41
+
- The **Up/Down** arrows show how many outgoing/incoming commits are in your current branch. You can use this icon to pull any incoming commits or push any outgoing commits.
42
+
43
43
- To view a specific commit, select the **Up/Down** arrow, and then select **View Outgoing/Incoming**.
44
44
45
45
- The **Pencil** shows the number of uncommitted changes to your code. You can select this icon to view those changes in the **Git Changes** window.
46
46
47
47
The **Git** menu provides tools for repository actions on your files. You can [use git fetch, pull, push, and sync for version control in Visual Studio](../../version-control/git-fetch-pull-sync.md).
48
48
49
-
To learn more about how to use Git with your app, see the [Visual Studio version control documentation](../../version-control/git-with-visual-studio.md).
49
+
For more information about how to use Git with your app, see [About Git in Visual Studio](../../version-control/git-with-visual-studio.md).
0 commit comments