Please feel free to provide feedback or file bugs here.

#Requires -Module needs RequiredVersion option

Votes from Connect: 4

Original Date Submitted: 11/14/2015 5:05:21 AM

Description:
********Contact Information********
Handle: June Blender
Site Name: PowerShell
Feedback ID: 2014667
***************************************

Problem Description:
To require the exact version of a module, I need a RequiredVersion option in #Requires.

The ModuleVersion key in the #Requires -Module hashtable: @{ModuleName=''; ModuleVersion=''} behaves as a minimum version requirement. Not all versions of all modules are backward-compatible. With the proliferation of versions, including side-by-side in PowerShell 5.0, we need to be able to require a particular version.

Also, about_Requires describes the ModuleVersion, but does not mention that it's a minimum (because I didn't know that when I wrote it -- should have tested!).

Product Studio item created by Connect Synchronizer due to creation of feedback ID 2014667 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=2014667).

Repro Steps:

Internal BugId: 15970

17 votes
Sign in
(thinking…)
Password icon
Signed in as (Sign out)

We’ll send you updates on this idea

AdminJoey Aiello [MSFT] (Program Manager, Windows Server) shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

0 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base