Hello,
I imported module xDSCResourceDesigner, it has one parameter defined with ValidateSet and I expected UI to give me those choices via Intellisence. It does not work though. Pop up does not appear, same works fine in ISE.
[parameter(
Mandatory = $true,
Position = 1)]
[ValidateSet("Uint8","Uint16","Uint32","Uint64",`
"Sint8","Sint16","Sint32","Sint64",`
"Real32","Real64","Char16","String",`
"Boolean","DateTime","Hashtable",`
"PSCredential",`
"Uint8[]","Uint16[]","Uint32[]","Uint64[]",`
"Sint8[]","Sint16[]","Sint32[]","Sint64[]",`
"Real32[]","Real64[]","Char16[]","String[]",`
"Boolean[]","DateTime[]","Hashtable[]",`
"PSCredential[]",`
"Microsoft.Management.Infrastructure.CimInstance",`
"Microsoft.Management.Infrastructure.CimInstance[]")]
[System.String]
$Type,
ValidateSet from DSC resources is not being pulled into designer
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- artisticcheese
- Posts: 12
- Last visit: Mon Sep 12, 2016 9:21 am
Re: ValidateSet from DSC resources is not being pulled into designer
Adding more DSC support is on our TODO list. Currently PowerShell Studio editor's PrimalSense runs disconnects from PowerShell and sessions are not maintained at this time.
In the meantime, if you want to open ISE from PowerShell Studio, you can click on the PowerShell ISE button in Ribbon->Tools->PowerShell.
Or you can create a custom command that will open the current file in the ISE using our Custom Menu feature:
https://www.sapien.com/blog/2015/10/01/ ... -template/
I attached a sample Open in ISE CustomMenu.inf to this topic:
David
In the meantime, if you want to open ISE from PowerShell Studio, you can click on the PowerShell ISE button in Ribbon->Tools->PowerShell.
Or you can create a custom command that will open the current file in the ISE using our Custom Menu feature:
https://www.sapien.com/blog/2015/10/01/ ... -template/
I attached a sample Open in ISE CustomMenu.inf to this topic:
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.