-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.The question is answered.
Description
Currently, if I want to reference a .NET assembly like System.Configuration, I do something like this at the top of my scripts:
try{[void][Configuration.ConfigurationManager]}catch{Add-Type -AN System.Configuration}
it would be much more readable (and declarative) as something like:
#Requires -Assembly System.Configuration
Metadata
Metadata
Assignees
Labels
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-AnsweredThe question is answered.The question is answered.