Skip to content

Commit cfdc655

Browse files
authored
Fixes #6499 - Updates Add-Type (#6591)
* Updates Add-Type * Updates Add-Type * Update other doc versions * Updates for PR
1 parent 66625a7 commit cfdc655

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

reference/6/Microsoft.PowerShell.Utility/Add-Type.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
keywords: powershell,cmdlet
44
Locale: en-US
55
Module Name: Microsoft.PowerShell.Utility
6-
ms.date: 08/06/2020
6+
ms.date: 09/04/2020
77
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/add-type?view=powershell-6&WT.mc_id=ps-gethelp
88
schema: 2.0.0
99
title: Add-Type
@@ -441,6 +441,10 @@ The acceptable values for this parameter are as follows:
441441
- Library
442442
- WindowsApplication
443443

444+
> [!IMPORTANT]
445+
> The `ConsoleApplication` and `WindowsApplication` values don't produce working output and should
446+
> not be used.
447+
444448
```yaml
445449
Type: Microsoft.PowerShell.Commands.OutputAssemblyType
446450
Parameter Sets: FromSource, FromMember, FromPath, FromLiteralPath

reference/7.0/Microsoft.PowerShell.Utility/Add-Type.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
keywords: powershell,cmdlet
44
Locale: en-US
55
Module Name: Microsoft.PowerShell.Utility
6-
ms.date: 08/06/2020
6+
ms.date: 09/04/2020
77
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/add-type?view=powershell-7&WT.mc_id=ps-gethelp
88
schema: 2.0.0
99
title: Add-Type
@@ -445,6 +445,10 @@ The acceptable values for this parameter are as follows:
445445
- Library
446446
- WindowsApplication
447447

448+
> [!IMPORTANT]
449+
> The `ConsoleApplication` and `WindowsApplication` values don't produce working output and should
450+
> not be used.
451+
448452
```yaml
449453
Type: Microsoft.PowerShell.Commands.OutputAssemblyType
450454
Parameter Sets: FromSource, FromMember, FromPath, FromLiteralPath

reference/7.1/Microsoft.PowerShell.Utility/Add-Type.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
keywords: powershell,cmdlet
44
Locale: en-US
55
Module Name: Microsoft.PowerShell.Utility
6-
ms.date: 08/06/2020
6+
ms.date: 09/04/2020
77
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/add-type?view=powershell-7.1&WT.mc_id=ps-gethelp
88
schema: 2.0.0
99
title: Add-Type
@@ -445,6 +445,11 @@ The acceptable values for this parameter are as follows:
445445
- Library
446446
- WindowsApplication
447447

448+
> [!IMPORTANT]
449+
> As of PowerShell 7.1, `ConsoleApplication` and `WindowsApplication` are not supported and
450+
> PowerShell throws a terminating error if either are specified as values for the **OutputType**
451+
> parameter.
452+
448453
```yaml
449454
Type: Microsoft.PowerShell.Commands.OutputAssemblyType
450455
Parameter Sets: FromSource, FromMember, FromPath, FromLiteralPath

0 commit comments

Comments
 (0)