Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Windows 7 Forum Vista Tutorials Tags

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Re: System.Management.Automation.dll missing?

Reply
 
LinkBack Thread Tools Display Modes
Old 11-21-2007   #1 (permalink)
Oisin Grehan
Guest


 
 

Re: System.Management.Automation.dll missing?

On Nov 21, 4:11 pm, aramey <anne.ra...@xxxxxx> wrote:
Quote:

> On Nov 21, 3:38 pm, aramey <anne.ra...@xxxxxx> wrote:
>
>
>
>
>
Quote:

> > Previously System.Management.Automation.dll was located in the
> > PowerShell
> > install folder. This made it easy to reference, but now it's gone,
> > although file
> > "system.management.automation.dll-help.xml" does exist.
>
Quote:

> > I can add the reference to my ASP files by adding this into
> > web.config:
> > <add assembly="System.Management.Automation, Version=1.0.0.0, ...
> > and that works fine,
>
Quote:

> > but how to I reference this for the code I'm compiling with csc.exe?
> > I need to know which file this is. I don't have visual studio and
> > need to compile some common code into an assembly.
>
Quote:

> > Does anyone know how to reference this file using csc.exe?
>
Quote:

> > Thanks,
> > Anne
>
> Found the answer:
>
> You should be able to refer to the PIA's directly in the GAC in c:
> \windows\Assembly\GAC\[whateverpiayouwant]\[version_pubkey]\[pia.dll]
>
> In My case it looks like this:
> /r:c:\WINDOWS\assembly\GAC_MSIL\System.Management.Automation
> \1.0.0.0_31bf3856ad364e35\System.Manament.Automation.dll
>
> Thank you so much to artleo:http://blogs.msdn.com/artleo/archive...9/471497.aspx- Hide quoted text -
>
> - Show quoted text -
Hi,

Because the assembly is in the GAC, you don't need that long format:

csc.exe cmdlet.cs ... /r:System.Management.Automation.dll

should work fine.

- Oisin / x0n






My System SpecsSystem Spec
Old 11-23-2007   #2 (permalink)
aramey
Guest


 
 

Re: System.Management.Automation.dll missing?

On Nov 21, 5:26 pm, Oisin Grehan <ois...@xxxxxx> wrote:
Quote:

> On Nov 21, 4:11 pm, aramey <anne.ra...@xxxxxx> wrote:
>
>
>
Quote:

> > On Nov 21, 3:38 pm, aramey <anne.ra...@xxxxxx> wrote:
>
Quote:
Quote:

> > > Previously System.Management.Automation.dll was located in the
> > > PowerShell
> > > install folder. This made it easy to reference, but now it's gone,
> > > although file
> > > "system.management.automation.dll-help.xml" does exist.
>
Quote:
Quote:

> > > I can add the reference to my ASP files by adding this into
> > > web.config:
> > > <add assembly="System.Management.Automation, Version=1.0.0.0, ...
> > > and that works fine,
>
Quote:
Quote:

> > > but how to I reference this for the code I'm compiling with csc.exe?
> > > I need to know which file this is. I don't have visual studio and
> > > need to compile some common code into an assembly.
>
Quote:
Quote:

> > > Does anyone know how to reference this file using csc.exe?
>
Quote:
Quote:

> > > Thanks,
> > > Anne
>
Quote:

> > Found the answer:
>
Quote:

> > You should be able to refer to the PIA's directly in the GAC in c:
> > \windows\Assembly\GAC\[whateverpiayouwant]\[version_pubkey]\[pia.dll]
>
Quote:

> > In My case it looks like this:
> > /r:c:\WINDOWS\assembly\GAC_MSIL\System.Management.Automation
> > \1.0.0.0_31bf3856ad364e35\System.Manament.Automation.dll
>
Quote:

> > Thank you so much to artleo:http://blogs.msdn.com/artleo/archive...1497.aspx-Hide quoted text -
>
Quote:

> > - Show quoted text -
>
> Hi,
>
> Because the assembly is in the GAC, you don't need that long format:
>
> csc.exe cmdlet.cs ... /r:System.Management.Automation.dll
>
> should work fine.
>
> - Oisin / x0n
Actually, that didn't work, which is why I had such trouble. That
didn't work and a search of the system turned up no file.
My System SpecsSystem Spec
Old 11-25-2007   #3 (permalink)
Oisin Grehan
Guest


 
 

Re: System.Management.Automation.dll missing?

On Nov 23, 10:49 pm, aramey <anne.ra...@xxxxxx> wrote:
Quote:

> On Nov 21, 5:26 pm, Oisin Grehan <ois...@xxxxxx> wrote:
>
>
>
>
>
Quote:

> > On Nov 21, 4:11 pm, aramey <anne.ra...@xxxxxx> wrote:
>
Quote:
Quote:

> > > On Nov 21, 3:38 pm, aramey <anne.ra...@xxxxxx> wrote:
>
Quote:
Quote:

> > > > Previously System.Management.Automation.dll was located in the
> > > > PowerShell
> > > > install folder. This made it easy to reference, but now it's gone,
> > > > although file
> > > > "system.management.automation.dll-help.xml" does exist.
>
Quote:
Quote:

> > > > I can add the reference to my ASP files by adding this into
> > > > web.config:
> > > > <add assembly="System.Management.Automation, Version=1.0.0.0, ...
> > > > and that works fine,
>
Quote:
Quote:

> > > > but how to I reference this for the code I'm compiling with csc.exe?
> > > > I need to know which file this is. I don't have visual studio and
> > > > need to compile some common code into an assembly.
>
Quote:
Quote:

> > > > Does anyone know how to reference this file using csc.exe?
>
Quote:
Quote:

> > > > Thanks,
> > > > Anne
>
Quote:
Quote:

> > > Found the answer:
>
Quote:
Quote:

> > > You should be able to refer to the PIA's directly in the GAC in c:
> > > \windows\Assembly\GAC\[whateverpiayouwant]\[version_pubkey]\[pia.dll]
>
Quote:
Quote:

> > > In My case it looks like this:
> > > /r:c:\WINDOWS\assembly\GAC_MSIL\System.Management.Automation
> > > \1.0.0.0_31bf3856ad364e35\System.Manament.Automation.dll
>
Quote:
Quote:

> > > Thank you so much to artleo:http://blogs.msdn.com/artleo/archive...spx-Hidequoted text -
>
Quote:
Quote:

> > > - Show quoted text -
>
Quote:

> > Hi,
>
Quote:

> > Because the assembly is in the GAC, you don't need that long format:
>
Quote:

> > csc.exe cmdlet.cs ... /r:System.Management.Automation.dll
>
Quote:

> > should work fine.
>
Quote:

> > - Oisin / x0n
>
> Actually, that didn't work, which is why I had such trouble. That
> didn't work and a search of the system turned up no file.- Hide quoted text -
>
> - Show quoted text -
Of course you're right, sorry. Utter brainfart on my behalf. The
reason other DLLs work is because they exist in the same directory as
the compiler typically. I don't know what I was thinking. ;-)

- Oisin
My System SpecsSystem Spec
Reply

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
RC2 - where has System.Management.Automation.dll gone? =?Utf-8?B?QW5kcmV3IFdlYmI=?= PowerShell 5 01-10-2008 12:43 AM
Where can I find System.management.automation.resources.dll Joe G PowerShell 8 09-06-2007 12:34 PM
-is [System.Management.Automation.PSCustomObject] Doug PowerShell 3 04-04-2007 06:36 PM
referencing system.management.automation DLL (or other Gac'd ones) klumsy@xtra.co.nz PowerShell 2 03-23-2007 04:29 PM
Getting Exception System.Management.Automation.PSArgumentException Sushil Kumar PowerShell 0 11-14-2006 08:06 AM


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53