Closed
Description
It seems that using -OutputType
to intentionally create persistent assemblies only works on Windows at the moment and there only in Windows PowerShell - at least when it comes to -OutputType ConsoleApplication
- not sure about -OutputType Library
(whereas -OutputType WindowsApplication
is self-evidently Windows-only).
Please clarify in the topic which combinations are supported in PowerShell Core and on non-Windows platforms, if any.
(If it turns out that only Windows PowerShell is supported, we should look into modifying / extending Add-Type
accordingly.)
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 90513733-758f-faf3-b117-3fbfc4e065ab
- Version Independent ID: b550e1f5-2481-7908-1d62-607923d09a2b
- Content: Add-Type (Microsoft.PowerShell.Utility) - PowerShell
- Content Source: reference/7.1/Microsoft.PowerShell.Utility/Add-Type.md
- Product: powershell
- GitHub Login: @JamesWTruher
- Microsoft Alias: jimtru