Skip to content

Commit f256459

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents bf4bcfb + f87bc8e commit f256459

10 files changed

+221
-177
lines changed

.github/workflows/clean-repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
# Create the PR for the work done by the "clean repo" tool
4141
- name: create-pull-request
42-
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f
42+
uses: peter-evans/create-pull-request@dd2324fc52d5d43c699a5636bcf19fceaa70c284
4343
with:
4444
branch: create-cleanrepo-pull-request/patch
4545
title: "Monthly chores: Automated repo cleanup"

.github/workflows/whats-new.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
savefile: './docs/ide/whats-new-visual-studio-docs.md'
4242

4343
- name: create-pull-request
44-
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f
44+
uses: peter-evans/create-pull-request@dd2324fc52d5d43c699a5636bcf19fceaa70c284
4545
with:
4646
branch: create-whatsnew-pull-request/patch
4747
title: "What's new article"

docs/data-tools/create-a-simple-data-application-by-using-adonet.md

Lines changed: 179 additions & 132 deletions
Large diffs are not rendered by default.
9.41 KB
Loading
10.8 KB
Loading
14.7 KB
Loading
8.19 KB
Loading
Lines changed: 17 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Display WPF Trace Information
3-
description: Visual Studio can receive debug trace information from WPF applications and display it in the Output window. Learn how to manage and customize WPF tracing.
4-
ms.date: 11/04/2016
2+
title: Display WPF trace information for data binding
3+
description: Visual Studio can receive debug trace information for data binding from WPF applications and display it in the Output window. Learn how to manage and customize WPF tracing.
4+
ms.date: 02/25/2025
55
ms.topic: how-to
66
dev_langs:
77
- CSharp
@@ -16,13 +16,14 @@ ms.author: mikejo
1616
manager: mijacobs
1717
ms.subservice: debug-diagnostics
1818
---
19-
# Display WPF Trace Information
2019

21-
Visual Studio can receive debug trace information from WPF applications and display that information in the **Output** window. To display debug trace information, WPF tracing must be enabled.
20+
# Display WPF trace information for data binding
21+
22+
Visual Studio can receive debug trace information for data binding from WPF applications and display that information in the **Output** window. To display debug trace information, WPF tracing must be enabled.
2223

2324
You can enable WPF tracing in your App.Config file or programmatically by using the <xref:System.Diagnostics.PresentationTraceSources> class. An easier way to enable WPF tracing is by using the **Options** window. WPF tracing for web applications is not supported.
2425

25-
### To enable or customize WPF trace information
26+
## Enable or customize WPF trace information
2627

2728
1. On the **Tools** menu, select **Options**.
2829

@@ -32,51 +33,29 @@ Visual Studio can receive debug trace information from WPF applications and disp
3233

3334
4. Under **General Output Settings**, select **All debug output**.
3435

35-
5. In the box on the right, look for **WPF Trace Settings**.
36-
37-
6. Open the **WPF Trace Settings** node.
36+
5. In the box on the right, open the **WPF Trace Settings** node.
3837

39-
7. Under **WPF Trace Settings**, click the category of settings that you want to enable (for example, **Data Binding**).
38+
6. Under **WPF Trace Settings**, select **Data Binding**.
4039

41-
A drop-down list control appears in the Settings column next to **Data Binding** or whatever category you clicked.
40+
A drop-down list control appears in the Settings column next to **Data Binding**.
4241

43-
8. Click the drop-down list and select the type of trace information that you want to see: **All**, **Critical**, **Error**, **Warning**, **Information**, **Verbose**, or **ActivityTracing**.
42+
7. Click the drop-down list and select the type of trace information that you want to see.
4443

45-
**Critical** enables tracing of Critical events only.
44+
- **Critical** enables tracing of Critical events only.
4645

47-
**Error** enables tracing of Critical and Error events.
46+
- **Error** enables tracing of Critical and Error events.
4847

49-
**Warning** enables tracing of Critical, Error, and Warning events.
48+
- **Warning** enables tracing of Critical, Error, and Warning events.
5049

51-
**Information** enables tracing of Critical, Error, Warning, and Information events.
50+
- **Information** enables tracing of Critical, Error, Warning, and Information events.
5251

53-
**Verbose** enables tracing of Critical, Error, Warning, Information, and Verbose events.
52+
- **Verbose** enables tracing of Critical, Error, Warning, Information, and Verbose events.
5453

55-
**ActivityTracing** enables tracing of Stop, Start, Suspend, Transfer, and Resume events.
54+
- **ActivityTracing** enables tracing of Stop, Start, Suspend, Transfer, and Resume events.
5655

5756
For more information about what these levels of trace information mean, see <xref:System.Diagnostics.SourceLevels>.
5857

5958
9. Click **OK**.
6059

61-
### To disable WPF trace information
62-
63-
1. On the **Tools** menu, select **Options**.
64-
65-
2. In the **Options** dialog box, in the box on the left, open the **Debugging** node.
66-
67-
3. Under **Debugging**, click **Output Window**.
68-
69-
4. In the box on the right, look for **WPF Trace Settings**.
70-
71-
5. Open the **WPF Trace Settings** node.
72-
73-
6. Under **WPF Trace Settings**, click the category of settings that you want to enable (for example, **Data Binding**).
74-
75-
A drop-down list control appears in the Settings column next to **Data Binding** or whatever category you clicked.
76-
77-
7. Click the drop-down list and select **Off**.
78-
79-
8. Click **OK**.
80-
8160
## Related content
8261
- [Debugging WPF](../debugger/debugging-wpf.md)

docs/ide/how-to-specify-build-events-visual-basic.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'Specify build events (Visual Basic)'
33
description: Explore how to use build events in Visual Basic to run scripts, macros, or other actions as a part of the compilation process.
4-
ms.date: 12/13/2024
4+
ms.date: 2/20/2025
55
ms.subservice: compile-build
66
ms.topic: how-to
77
helpviewer_keywords:
@@ -54,14 +54,16 @@ Build events are specified in the **Build Events** dialog box, available from th
5454
:::moniker-end
5555

5656
> [!NOTE]
57-
> Add a `call` statement before all post-build commands that run *.bat* files. For example, `call C:\MyFile.bat` or `call C:\MyFile.bat call C:\MyFile2.bat`.
57+
> Add a `call` statement before all post-build commands that run `.bat` files. For example, `call C:\MyFile.bat` or `call C:\MyFile.bat call C:\MyFile2.bat`.
5858
5959
> [!NOTE]
6060
> If your pre-build or post-build event does not complete successfully, you can terminate the build by having your event action exit with a code other than zero (0), which indicates a successful action.
6161
62+
You can reference "macros" (actually MSBuild property names) in the scripts. To reference a property, use the syntax `$(PropertyName)`, which is substituted with the property value when the event script is executed. For a list of commonly used values, see [MSBuild common properties](../msbuild/common-msbuild-project-properties.md). There may be other properties as well as defined in the project file, in any imported files in the project file, in environment variables, or passed on the command line using the `-p` MSBuild switch during command-line builds.
63+
6264
## Example: How to change manifest information using a post-build event
6365

64-
The following procedure shows how to set the minimum operating system version in the application manifest using an *.exe* command called from a post-build event (the *.exe.manifest* file in the project directory). The minimum operating system version is a four-part number such as 4.10.0.0. To do this, the command will change the `<dependentOS>` section of the manifest:
66+
The following procedure shows how to set the minimum operating system version in the application manifest using an `.exe` command called from a post-build event (the `.exe.manifest` file in the project directory). The minimum operating system version is a four-part number such as 4.10.0.0. To do this, the command will change the `<dependentOS>` section of the manifest:
6567

6668
```xml
6769
<dependentOS>
@@ -159,9 +161,9 @@ The following procedure shows how to set the minimum operating system version in
159161

160162
`C:\TEMP\ChangeOSVersionVB.exe "$(TargetPath).manifest" 5.1.2600.0`
161163

162-
When you build the project, this command will change the minimum operating system version in the application manifest to 5.1.2600.0.
164+
When you build the project, this command changes the minimum operating system version in the application manifest to 5.1.2600.0.
163165

164-
The `$(TargetPath)` macro expresses the full path for the executable being created. Therefore, *$(TargetPath).manifest* will specify the application manifest created in the *bin* directory. Publishing will copy this manifest to the publishing location that you set earlier.
166+
The `$(TargetPath)` macro expresses the full path for the executable being created. Therefore, `$(TargetPath).manifest` specifes the application manifest created in the *bin* directory. Publishing copies this manifest to the publishing location that you set earlier.
165167

166168
8. Publish the project again. Go to the **Publish** page and click **Publish Now**.
167169

docs/msbuild/net-sdk-multitargeting.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,22 @@ Diamond dependencies occur when multiple versions of a package are present in th
117117

118118
By following these practices, you can effectively manage version-specific dependencies in your .NET projects, ensuring compatibility and stability across different target frameworks. See [Manage package dependencies in .NET applications](/dotnet/core/tools/dependencies), [Dependencies](/dotnet/standard/library-guidance/dependencies), and [How NuGet resolves package dependencies](/nuget/concepts/dependency-resolution).
119119

120+
## Specify runtime identifiers
121+
122+
A runtime identifier (RID) specifies a target runtime environment, which consists of a unique combination of operating system and CPU. Runtime identifiers affect the architecture-dependent NuGet packages that are used. Runtime identifiers consist of a shorthand code, for example, `linux-x64`. For more information and a list of RID codes for each supported operating system and CPU, see [.NET RID catalog](/dotnet/core/rid-catalog).
123+
124+
RIDs are specified using the `<RuntimeIdentifier>` property in the project file. You can also use the plural form `<RuntimeIdentifiers>` to specify multiple target architectures.
125+
126+
For .NET Core projects, target frameworks and target runtimes specified as RIDs act separately, and may be used in any supported combination, including multiple RIDs and multiple target frameworks. For a .NET Framework target, you can only specify a single RID.
127+
128+
There's a distinction between a build that is inherently independent of RID (by specifying `RuntimeIdentifiers`) and a build that targets an RID (by specifying `RuntimeIdentifier` or by using the `-r` option with the `dotnet` CLI).
129+
130+
If you specify `RuntimeIdentifiers`, the RID affects the NuGet packages your application binaries depend on, but the binary itself only depends on the target framework. Therefore, in this scenario, although separate output folders are created for each different target framework (for example, `bin\Debug\netstandard2.0` and `bin\Debug\net8.0`), they are not created for each RID.
131+
132+
Specifying `RuntimeIdentifiers` does not inherently mean each build or publish operation targets each of the RIDs that are specified. Instead, it signals to NuGet Restore the set of RID-specific NuGet packages that need to be downloaded during a restore operation. This means that it's feasible to do `dotnet restore && dotnet publish -r linux-x64 --no-restore` to download the correct runtime packages for the RID you specify.
133+
134+
If a single RuntimeIdentifier is specified (either via `-r` on the CLI or setting the `RuntimeIdentifier` property in an MSBuild project file), then most operations become platform-specific, including `dotnet publish` and `dotnet build`. In this case, the output paths and several other MSBuild properties are modified. For example, the output directory of a build with a single RID will have the RID appended: `bin\Debug\<TFM>\<RID>`.
135+
120136
## Comparison Between .NET Framework and .NET Core Multitargeting
121137

122138
Multitargeting for .NET Core (and .NET 5 and later) is very different and more powerful than [multitargeting for .NET Framework projects](msbuild-multitargeting-overview.md).

0 commit comments

Comments
 (0)