View Single Post
Old 10-02-2007   #4 (permalink)
Lee Holmes [MSFT]


 
 

Re: Creating a cmdlet using csc.exe - missing namespaces

Another helpful way to get $ref is:

$ref = [PsObject].Assembly.Location

--
Lee Holmes [MSFT]
Windows PowerShell Development
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.

"Marco Shaw" <marco.shaw@_NO_SPAM_gmail.com> wrote in message
news:OW0KMxK$HHA.3848@xxxxxx
Quote:

>
Quote:

>> What's the value of $ref ?
>
> Sorry...
>
> PSH> $ref
> C:\WINDOWS\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll
>
> Marco
>
> --
> ----------------
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com

My System SpecsSystem Spec