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/designers/walkthrough-windows-forms-designer.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Windows Forms Designer tutorial
3
3
description: 'Use Windows Forms Designer to build applications and arrange controls, set margins and padding, adjust layout, size, and display, and set property values.'
4
-
ms.date: 08/27/2024
4
+
ms.date: 8/5/2025
5
5
ms.topic: tutorial
6
6
helpviewer_keywords:
7
7
- Windows Forms Designer, get started
@@ -30,6 +30,22 @@ When you're finished, you'll have a custom control that's been assembled by usin
30
30
> [!TIP]
31
31
> If you're a C++ developer and are looking for a tutorial to help you create a Windows app that includes forms and controls, see [Creating a forms-based MFC application](/cpp/mfc/reference/creating-a-forms-based-mfc-application?view=msvc-170&preserve-view=true). For more generalized info, see [Overview of Windows programming in C++](/cpp/windows/overview-of-windows-programming-in-cpp?view=msvc-170&preserve-view=true).
32
32
33
+
## Prerequisites
34
+
35
+
::: moniker range="=vs-2019"
36
+
37
+
- If you don't have Visual Studio, go to [Visual Studio downloads](https://visualstudio.microsoft.com/vs/) to install it for free.
38
+
- The **.NET desktop development** workload. To verify or install this workload in Visual Studio, select **Tools** > **Get Tools and Features**. For more information, see [Change workloads or individual components](../install/modify-visual-studio.md#change-workloads-or-individual-components).
39
+
40
+
::: moniker-end
41
+
42
+
::: moniker range=">=vs-2022"
43
+
44
+
- If you don't have Visual Studio, go to [Visual Studio 2022 downloads](https://visualstudio.microsoft.com/downloads/?cid=learn-onpage-download-create-csharp-winform-app-page-cta) to install it for free.
45
+
- The **.NET desktop development** workload. To verify or install this workload in Visual Studio, select **Tools** > **Get Tools and Features**. For more information, see [Change workloads or individual components](../install/modify-visual-studio.md#change-workloads-or-individual-components).
46
+
47
+
::: moniker-end
48
+
33
49
## Create the custom control project
34
50
35
51
The first step is to create the DemoCalculator control project.
Copy file name to clipboardExpand all lines: docs/msbuild/how-to-use-environment-variables-in-a-build.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: 'Use Environment Variables in a Build'
3
3
description: Work with environment variables in MSBuild project files, and use environment variables to set build options without modifying the project file.
4
-
ms.date: 08/14/2024
4
+
ms.date: 8/5/2025
5
5
ms.topic: how-to
6
6
helpviewer_keywords:
7
7
- environment variables, referencing
@@ -14,11 +14,11 @@ ms.subservice: msbuild
14
14
---
15
15
# Use environment variables in a build
16
16
17
-
When you build projects, it is often necessary to set build options using information that is not in the project file or the files that comprise your project. This information is typically stored in environment variables.
17
+
When you build projects, it's often necessary to set build options using information that isn't in the project file or the files that comprise your project. This information is typically stored in environment variables.
18
18
19
19
## Reference environment variables
20
20
21
-
All environment variables that are valid MSBuild property names are available to the Microsoft Build Engine (MSBuild) project file as properties. Valid property names are described in [MSBuild properties](msbuild-properties.md). For example, environment variables that begin with a number are not available in MSBuild.
21
+
All environment variables that are valid MSBuild property names are available to the MSBuild project file as properties. Valid property names are described in [MSBuild properties](msbuild-properties.md). For example, environment variables that begin with a number aren't available in MSBuild.
22
22
23
23
> [!NOTE]
24
24
> If the project file contains an explicit definition of a property that has the same name as an environment variable, the property in the project file overrides the value of the environment variable.
@@ -29,11 +29,11 @@ When you build projects, it is often necessary to set build options using inform
You can use a `Condition` attribute to provide a default value for a property if the environment variable was not set.
32
+
You can use a `Condition` attribute to provide a default value for a property if the environment variable wasn't set.
33
33
34
34
#### To provide a default value for a property
35
35
36
-
- Use a `Condition` attribute on a property to set the value only if the property has no value. For example, the following code sets the `ToolsPath` property to *c:\tools* only if the `ToolsPath` environment variable is not set:
36
+
- Use a `Condition` attribute on a property to set the value only if the property has no value. For example, the following code sets the `ToolsPath` property to *c:\tools* only if the `ToolsPath` environment variable isn't set:
0 commit comments