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
{{ message }}
Repository navigation
Remove -DotnetFrameworkVersion and -ClrVersion from New-ModuleManifest #18330
Per MicrosoftDocs/PowerShell-Docs#9328 these members in the module manifest are no longer valid and keeping it can cause confusion on why it's not doing what the author thinks it should be doing.
The obsolete parameters should be marked obsolete via documentation (and hidden if possible from tab completion) but not removed (since they don't break things, and removing them might break existing scripts).
Optionally, when a value is provided, the cmdlet can output a warning that these fields don't work correctly in modern PowerShell. NOTE: this is for DotnetFrameworkVersion and CLRVersion which legitimately don't work.
Finally, I think it would be great if we could not put the commented out text for these in the psd1 (when there's no value passed in to the parameter).
Surely there are PowerShell modules that don't/only work on ARM? But I don't know if this one works or not.
However, at the very least, I think it would be useful to have all the parameters that are rarely used and are complicated to get right ... just not output in the PSD1 unless they have a value. The commented out lines aren't useful. That's at least these:
The @PowerShell/wg-powershell-cmdlets reviewed this and agreed that these members don't serve value and at worst will be misleading to users. Our proposal is to not make a breaking change by removing them now, but make them no-op and emit a warning when used.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commented on Nov 15, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commented on Nov 22, 2023
Activity
iSazonov commentedon Oct 19, 2022
What about ProcessorArchitecture?
#18320 (comment)
Jaykul commentedon Oct 19, 2022
Proposed technical implementation details (optional)
The obsolete parameters should be marked obsolete via documentation (and hidden if possible from tab completion) but not removed (since they don't break things, and removing them might break existing scripts).
Optionally, when a value is provided, the cmdlet can output a warning that these fields don't work correctly in modern PowerShell. NOTE: this is for
DotnetFrameworkVersionandCLRVersionwhich legitimately don't work.Finally, I think it would be great if we could not put the commented out text for these in the psd1 (when there's no value passed in to the parameter).
Surely there are PowerShell modules that don't/only work on ARM? But I don't know if this one works or not.
However, at the very least, I think it would be useful to have all the parameters that are rarely used and are complicated to get right ... just not output in the PSD1 unless they have a value. The commented out lines aren't useful. That's at least these:
iSazonov commentedon Oct 20, 2022
Search results on Windows Server 2019 with RSAT:
I also tried to find at least one module with ProcessorArchitecture with a non-empty value on GitHub, but I couldn't.
iSazonov commentedon Oct 20, 2022
The only place to keep these things for backward compatibility is in the PSD file parser. Elsewhere they can be freely removed.
SteveL-MSFT commentedon Nov 2, 2022
The @PowerShell/wg-powershell-cmdlets reviewed this and agreed that these members don't serve value and at worst will be misleading to users. Our proposal is to not make a breaking change by removing them now, but make them no-op and emit a warning when used.
iSazonov commentedon Nov 2, 2022
What is "these"? Please clarify.
microsoft-github-policy-service commentedon Nov 15, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 15, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 15, 2023
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.
microsoft-github-policy-service commentedon Nov 22, 2023
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.