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/ide/how-to-view-save-and-configure-build-log-files.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: 'How to: View, save, and configure build log files | Microsoft Docs'
3
3
description: Learn how you can view, save, and configure build log files. These files provide useful information for tasks like troubleshooting a build failure.
4
4
ms.custom: SEO-VS-2020
5
-
ms.date: 08/28/2019
5
+
ms.date: 09/12/2022
6
6
ms.technology: vs-ide-compile
7
7
ms.topic: how-to
8
8
ms.assetid: 75d38b76-26d6-4f43-bbe7-cbacd7cc81e7
@@ -18,7 +18,7 @@ ms.workload:
18
18
19
19
After you build a project in the Visual Studio IDE, you can view information about that build in the **Output** window. By using this information, you can, for example, troubleshoot a build failure.
20
20
21
-
- For C++ projects, you can also view the same information in a log file that's created and saved when you build a project.
21
+
- For C++ projects, you can also view the same information in a log file that's created and saved when you build a project.
22
22
23
23
- For managed code projects, you can click in the build output window and press **Ctrl**+**S**. Visual Studio prompts you for a location to save the information from the **Output** window into a log file.
24
24
@@ -28,7 +28,7 @@ If you build any kind of project by using MSBuild, you can create a log file to
28
28
29
29
## To view the build log file for a C++ project
30
30
31
-
1. In **Windows Explorer** or **File Explorer**, open the following file (relative to the project root folder): *Release*\\{ProjectName}.Log* or *Debug\\{ProjectName}.log*
31
+
1. In **Windows Explorer** or **File Explorer**, open the following file (relative to the project root folder): *Release\\{ProjectName}.Log* or *Debug\\{ProjectName}.log*
32
32
33
33
## To create a build log file for a managed-code project
Copy file name to clipboardExpand all lines: docs/msbuild/target-build-order.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Target Build Order | Microsoft Docs
3
3
description: Learn how to specify the order in which MSBuild targets are run, if the input to one target depends on the output of another target.
4
4
ms.custom: SEO-VS-2020
5
-
ms.date: 05/02/2019
5
+
ms.date: 09/12/2022
6
6
ms.topic: conceptual
7
7
helpviewer_keywords:
8
8
- msbuild, build order
@@ -25,7 +25,7 @@ Targets must be ordered if the input to one target depends on the output of anot
25
25
26
26
-`DependsOnTargets`. This `Target` attribute specifies targets that must run before this target can run.
27
27
28
-
-`BeforeTargets` and `AfterTargets`. These `Target` attributes specify that this target should run before or after the specified targets (MSBuild 4.0).
28
+
-`BeforeTargets` and `AfterTargets`. These `Target` attributes specify that this target should run before or after the specified targets.
29
29
30
30
A target is never run twice during a build, even if a subsequent target in the build depends on it. Once a target has been run, its contribution to the build is complete.
31
31
@@ -81,7 +81,7 @@ tells MSBuild that the `Serve` target depends on the `Chop` target and the `Cook
81
81
82
82
## BeforeTargets and AfterTargets
83
83
84
-
In MSBuild 4.0 and later, you can specify target order by using the `BeforeTargets` and `AfterTargets` attributes.
84
+
You can specify target order by using the `BeforeTargets` and `AfterTargets` attributes.
Copy file name to clipboardExpand all lines: docs/msbuild/walkthrough-creating-an-msbuild-project-file-from-scratch.md
+45-61Lines changed: 45 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
---
2
2
title: Create an MSBuild project file from scratch
3
3
description: Walk through creating an MSBuild project file from scratch to understand how the XML is organized and how you can change it to control a build.
4
-
ms.custom: SEO-VS-2020
5
-
ms.date: 11/04/2016
4
+
ms.date: 09/12/2022
6
5
ms.topic: conceptual
7
6
helpviewer_keywords:
8
7
- MSBuild, tutorial
@@ -19,7 +18,7 @@ ms.workload:
19
18
Programming languages that target the .NET Framework use MSBuild project files to describe and control the application build process. When you use Visual Studio to create an MSBuild project file, the appropriate XML is added to the file automatically. However, you may find it helpful to understand how the XML is organized and how you can change it to control a build.
20
19
21
20
> [!NOTE]
22
-
> This tutorial works only with .NET Framework 4.x and earlier, not .NET Core or .NET 5 and later.
21
+
> This article is appropriate if you want to learn the basic fundamentals of how MSBuild works independently of any SDK. Building with an SDK, such as when you use `dotnet build`or you add the `Sdk` attribute to the root project element, is not covered in this article. See [.NET Project SDKs](/dotnet/core/project-sdk/overview).
23
22
24
23
For information about creating a project file for a C++ project, see [MSBuild (C++)](/cpp/build/msbuild-visual-cpp).
25
24
@@ -45,7 +44,7 @@ Programming languages that target the .NET Framework use MSBuild project files t
45
44
46
45
This walkthrough shows how to build the project at the command prompt and examine the results. For more information about MSBuild and how to run MSBuild at the command prompt, see [Walkthrough: Use MSBuild](../msbuild/walkthrough-using-msbuild.md).
47
46
48
-
To complete the walkthrough, you must have Visual Studio installed because it includes MSBuild and the Visual C# compiler, which are required for the walkthrough.
47
+
To complete the walkthrough, you must have Visual Studio installed because it includes MSBuild and the C# compiler, which are required for the walkthrough.
49
48
50
49
## Extend the path
51
50
@@ -57,11 +56,9 @@ Before you can use MSBuild, you must extend the PATH environment variable to inc
57
56
58
57
1. At the command prompt, browse to the folder where you want to create the application, for example, *\My Documents\\* or *\Desktop\\*.
59
58
60
-
2. Type **md HelloWorld** to create a subfolder named *\HelloWorld\\*.
59
+
1. Create a subfolder named *\HelloWorld\\* and change directory to go inside it.
61
60
62
-
3. Type **cd HelloWorld** to change to the new folder.
63
-
64
-
4. Start Notepad or another text editor, and then type the following code.
61
+
1. In a text editor, create a new file *HelloWorld.cs* and then copy and paste the following code:
65
62
66
63
```csharp
67
64
usingSystem;
@@ -79,15 +76,13 @@ Before you can use MSBuild, you must extend the PATH environment variable to inc
0 commit comments