# Add prerelease module as a requiredmodule in a psd1

**URL:** <https://forums.powershell.org/t/add-prerelease-module-as-a-requiredmodule-in-a-psd1/14684>\
**Category:** PowerShell Help\
**Created:** [July 19, 2020, 5:28am UTC](https://forums.powershell.org/t/add-prerelease-module-as-a-requiredmodule-in-a-psd1/14684 "2020-07-19T05:28:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnyfive](https://avatars.discourse-cdn.com/v4/letter/j/ea666f/32.png) [@johnnyfive](https://forums.powershell.org/u/johnnyfive)\
**Post date:** [July 19, 2020, 5:28am UTC](https://forums.powershell.org/t/add-prerelease-module-as-a-requiredmodule-in-a-psd1/14684/1 "2020-07-19T05:28:06Z")

</div>

Is there a way to have a prerelease module set as a required module in a psd1? I want my module to auto download the prerelease module when I install it from the gallery. In my case, Microsoft.PowerShell.SecretManagement.

My psd1 contains this under required modules:

`RequiredModules = @(`  
` @{ModuleName = ‘Microsoft.Powershell.SecretManagement’; ModuleVersion = ‘0.2.1’; Guid = ‘766a9266-f2ba-4146-bec2-bb30bf5a4f0a’}`  
`)`

Even with the Guid it still can’t be found using that syntax. I can’t specify `0.2.1-alpha1` as the version either.

Is there a possible workaround for this?

---

<div class="post-metadata">

**Author:** ![kvprasoon](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kvprasoon/32/4449_2.png) [@kvprasoon](https://forums.powershell.org/u/kvprasoon)\
**Post date:** [July 19, 2020, 9:11am UTC](https://forums.powershell.org/t/add-prerelease-module-as-a-requiredmodule-in-a-psd1/14684/2 "2020-07-19T09:11:35Z")

</div>

I Didn’t think too much, but feels like PSDepend would help you here.

> **[GitHub - RamblingCookieMonster/PSDepend: PowerShell Dependency Handler](https://github.com/RamblingCookieMonster/PSDepend)**
>
> PowerShell Dependency Handler. Contribute to RamblingCookieMonster/PSDepend development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:29pm UTC](https://forums.powershell.org/t/add-prerelease-module-as-a-requiredmodule-in-a-psd1/14684/3 "2024-05-16T20:29:13Z")

</div>


