Skip to content

Commit 40979e0

Browse files
Merge pull request #6127 from MicrosoftDocs/main
Auto Publish – main to live - 2025-12-16 05:00 UTC
2 parents aa42384 + d5bd785 commit 40979e0

12 files changed

Lines changed: 117 additions & 711 deletions

.openpublishing.redirection.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10394,6 +10394,26 @@
1039410394
"source_path": "hub/apps/design/motion/motion-reposition.md",
1039510395
"redirect_url": "/previous-versions/windows/uwp/ui-input/motion-reposition",
1039610396
"redirect_document_id": false
10397+
},
10398+
{
10399+
"source_path": "hub/apps/winui/winui3/create-your-first-winui3-app.md",
10400+
"redirect_url": "/hub/apps/get-started/start-here.md",
10401+
"redirect_document_id": false
10402+
},
10403+
{
10404+
"source_path": "hub/apps/windows-app-sdk/set-up-your-development-environment.md",
10405+
"redirect_url": "/hub/apps/get-started/start-here.md",
10406+
"redirect_document_id": false
10407+
},
10408+
{
10409+
"source_path": "hub/apps/how-tos/hello-world-winui3.md",
10410+
"redirect_url": "/hub/apps/get-started/start-here.md",
10411+
"redirect_document_id": false
10412+
},
10413+
{
10414+
"source_path": "hub/apps/winui/index.md",
10415+
"redirect_url": "/hub/apps/winui3/index.md",
10416+
"redirect_document_id": false
1039710417
}
1039810418
]
1039910419
}

hub/advanced-settings/sudo/index.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,26 @@ Update `<configuration_option>` to either `forceNewWindow`, `disableInput`, or `
4949

5050
To use Sudo for Windows, simply prepend `sudo` to the command you want to run as an administrator. For example, to run `netstat -ab` as an administrator, you would run `sudo netstat -ab` in your console window.
5151

52+
### Common developer scenarios
53+
54+
Here are some common scenarios where developers might use sudo:
55+
56+
- **Editing system files**: `sudo notepad C:\Windows\System32\drivers\etc\hosts`
57+
- **Installing packages globally**: `sudo npm install -g package-name`
58+
- **Running administrative tools**: `sudo diskpart`
59+
60+
> [!NOTE]
61+
> For development work involving system directories like `C:\Windows\`, consider using development environments or alternative approaches when possible. Sudo should be used judiciously and only when elevated permissions are truly necessary.
62+
5263
Because `sudo` elevates the targeted process to run with administrator-level permission, a prompt will open asking you to verify that you want to continue.
5364

5465
## Security Considerations
5566

56-
There are risks associated with running sudo in the **Input closed** (`inputClosed`) or **Inline** (`normal`) configurations. It is possible for malicious processes to attempt to drive the elevated process using the connection established by the unelevated sudo.exe and the elevated sudo.exe process.
67+
There are risks associated with running sudo in the **Input closed** (`disableInput`) or **Inline** (`normal`) configurations. It is possible for malicious processes to attempt to drive the elevated process using the connection established by the unelevated sudo.exe and the elevated sudo.exe process.
5768

58-
The `inputClosed` configuration option mitigates risk by closing the input handle. Disconnecting the input handle from the current console window means that unelevated processes cannot send input to the elevated process.
69+
The `disableInput` configuration option mitigates risk by closing the input handle. Disconnecting the input handle from the current console window means that unelevated processes cannot send input to the elevated process.
5970

60-
The `inline` configuration option runs the elevated process in the current window and the process is able to receive input from the current console session. An unelevated process can send input to the elevated process within the same console windows or get information from the output in the current windows in this configuration.
71+
The `inline` configuration option runs the elevated process in the current window and the process is able to receive input from the current console session. An unelevated process can send input to the elevated process within the same console window or get information from the output in the current window in this configuration.
6172

6273
## FAQ
6374

@@ -75,7 +86,7 @@ The `inline` configuration option runs the elevated process in the current windo
7586

7687
- `sudo` can only be elevated via the User Account Control (UAC) security feature designed to protect the operating system from unauthorized changes using verification prompt.
7788

78-
You should consider your particular use-case and plan to use the command that best meets your needs. You should also consider the security implications of running sudo in the `inputClosed` and `normal` modes. The default `forceNewWindow` configuration option is recommended unless you are familiar and comfortable with the risks associated with the other `sudo` configurations.
89+
You should consider your particular use-case and plan to use the command that best meets your needs. You should also consider the security implications of running sudo in the `disableInput` and `normal` modes. The default `forceNewWindow` configuration option is recommended unless you are familiar and comfortable with the risks associated with the other `sudo` configurations.
7990

8091
## Sudo for Windows open source repository
8192

hub/apps/get-started/start-here.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ ms.collection: windows11
1010

1111
# Setup and tooling for WinUI
1212

13-
Welcome to Windows app development. This guide will take you through the steps needed to begin creating your first app with WinUI. It will also point you to resources that will help you learn more about Windows development.
13+
This guide walks you through setting up your WinUI and Windows App SDK development environment in Visual Studio and creating your first app.
1414

15-
16-
## 1. Enable Developer Mode
15+
### 1. Enable Developer Mode
1716

1817
Windows has a special mode for developers that adjusts security settings so you can run the apps you're working on. You need to enable Developer Mode before you can build, deploy, and test your app by using Visual Studio.
1918

@@ -28,7 +27,7 @@ To enable Developer Mode:
2827
For more information about Developer Mode, see [Settings for developers](/windows/advanced-settings/developer-mode).
2928

3029

31-
## 2. Install Visual Studio and required workloads
30+
### 2. Install Visual Studio and required workloads
3231

3332
Use [Visual Studio](/visualstudio/ide/), Microsoft’s powerful IDE, to build, debug, and deploy your WinUI app. It offers ready-to-use project templates for Windows and other platforms to help you get started quickly.
3433

@@ -75,7 +74,7 @@ On the **Workloads** tab of the Visual Studio Installer app, select the followin
7574
7675
---
7776

78-
## 3. Create and launch your first WinUI app
77+
### 3. Create and launch your first WinUI app
7978

8079
Visual Studio project templates include all the files you need to quickly create your app. In fact, after you create your project from a WinUI app template, you already have an app that you can run, and then add your code to.
8180

@@ -105,7 +104,7 @@ Congratulations, you've just built your first WinUI app! Continue with the next
105104
## Next steps
106105

107106
> [!div class="nextstepaction"]
108-
> [Build your first notetaking app with WinUI](../tutorials/winui-notes/intro.md)
107+
> [Build your first app with WinUI](../tutorials/winui-notes/intro.md)
109108
110109
* To get an idea of what WinUI offers, check out the WinUI Gallery app.
111110
[!INCLUDE [winui-3-gallery](../../includes/winui-3-gallery.md)]

0 commit comments

Comments
 (0)