Skip to content

Commit 4460f68

Browse files
committed
Remove .NET 5-only setting.
1 parent f3f863d commit 4460f68

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

docs/core/project-sdk/msbuild-props-desktop.md

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: MSBuild properties for Microsoft.NET.Sdk.Desktop
33
description: Reference for the MSBuild properties and items that are understood by the .NET Desktop SDK, which includes WPF and WinForms.
4-
ms.date: 04/26/2024
4+
ms.date: 08/13/2024
55
ms.topic: reference
66
author: adegeo
77
ms.author: adegeo
@@ -92,7 +92,7 @@ The `UseWPF` property controls whether or not to include references to WPF libra
9292
</PropertyGroup>
9393
```
9494

95-
When this property is set to `true`, .NET 5+ projects automatically import the [.NET Desktop SDK](#enable-net-desktop-sdk).
95+
When this property is set to `true`, .NET projects automatically import the [.NET Desktop SDK](#enable-net-desktop-sdk).
9696

9797
### EnableDefaultApplicationDefinition
9898

@@ -202,25 +202,7 @@ The `UseWindowsForms` property controls whether or not your application is built
202202
</PropertyGroup>
203203
```
204204

205-
When this property is set to `true`, .NET 5+ projects automatically import the [.NET Desktop SDK](#enable-net-desktop-sdk).
206-
207-
## Shared settings
208-
209-
- [DisableWinExeOutputInference](#disablewinexeoutputinference)
210-
211-
### DisableWinExeOutputInference
212-
213-
Applies to .NET 5 SDK and later.
214-
215-
When an app has the `Exe` value set for the `OutputType` property, a console window is created if the app isn't running from a console. This behavior is generally not desirable for a Windows Desktop app. With the `WinExe` value, a console window isn't created. Starting with the .NET 5 SDK, the `Exe` value is automatically transformed to `WinExe`.
216-
217-
The `DisableWinExeOutputInference` property reverts the behavior of treating `Exe` as `WinExe`. Set this value to `true` to restore the behavior of the `OutputType` property value of `Exe`. The default value is `false`.
218-
219-
```xml
220-
<PropertyGroup>
221-
<DisableWinExeOutputInference>true</DisableWinExeOutputInference>
222-
</PropertyGroup>
223-
```
205+
When this property is set to `true`, .NET projects automatically import the [.NET Desktop SDK](#enable-net-desktop-sdk).
224206

225207
## See also
226208

0 commit comments

Comments
 (0)