Windows Vista Forums
Vista Forums Home Join Vista Forums 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 Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - RC2 - where has System.Management.Automation.dll gone?

Reply
 
Old 09-29-2006   #1 (permalink)
=?Utf-8?B?QW5kcmV3IFdlYmI=?=


 
 

RC2 - where has System.Management.Automation.dll gone?

Previously System.Management.Automation.dll was located in the PowerShell
install folder, as well as in the GAC. This made it easy to reference from
your VS05 project. But now it's gone, although file
"system.management.automation.dll-help.xml" does exist. Is this absence a
new policy, or an oversight?

Now I have to work out how to reference System.Management.Automation.dll in
the GAC, which turns out not to be so straight forward as I thought!


My System SpecsSystem Spec
Old 09-29-2006   #2 (permalink)
=?Utf-8?B?QW5kcmV3IFdlYmI=?=


 
 

RE: RC2 - where has System.Management.Automation.dll gone?

OK - pretty easy to add the reference. Edit the .csproj file in a text
editor, and add:-

<Reference Include="System.Management.Automation" />

to the relevant section. But it would be nice to have the file back in a
browsable folder location.

BTW: on the subject of editing files in a text editor, I've found (not doubt
others have too) that if you edit a version 8 .sln file, you have to delete
the blank first line that VS erroneously put there when the solution was
created. If you don't do this, it won't be recognised as a proper .sln file
anymore. Hope this is fixed in SP1.

My System SpecsSystem Spec
Old 09-29-2006   #3 (permalink)
Narayanan Lakshmanan [MSFT]


 
 

Re: RC2 - where has System.Management.Automation.dll gone?

The assemblies are available on a browsable folder location as part of the
Windows SDK.

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


"Andrew Webb" <AndrewWebb@discussions.microsoft.com> wrote in message
news:8E8BFAC9-EC9B-4C0B-B340-0E50E510A4B2@microsoft.com...
> OK - pretty easy to add the reference. Edit the .csproj file in a text
> editor, and add:-
>
> <Reference Include="System.Management.Automation" />
>
> to the relevant section. But it would be nice to have the file back in a
> browsable folder location.
>
> BTW: on the subject of editing files in a text editor, I've found (not
> doubt
> others have too) that if you edit a version 8 .sln file, you have to
> delete
> the blank first line that VS erroneously put there when the solution was
> created. If you don't do this, it won't be recognised as a proper .sln
> file
> anymore. Hope this is fixed in SP1.
>


My System SpecsSystem Spec
Old 10-03-2006   #4 (permalink)
=?Utf-8?B?c2VjcmV0R2Vlaw==?=


 
 

RE: RC2 - where has System.Management.Automation.dll gone?

thanks for that tip Andrew -- i've thanked tyou for it in the FAQ for
ShinyPower (since i just used your help here to get the next release out)

http://www.codeplex.com/Wiki/View.as...ed%20Questions


"Andrew Webb" wrote:

> OK - pretty easy to add the reference. Edit the .csproj file in a text
> editor, and add:-
>
> <Reference Include="System.Management.Automation" />
>
> to the relevant section. But it would be nice to have the file back in a
> browsable folder location.
>
> BTW: on the subject of editing files in a text editor, I've found (not doubt
> others have too) that if you edit a version 8 .sln file, you have to delete
> the blank first line that VS erroneously put there when the solution was
> created. If you don't do this, it won't be recognised as a proper .sln file
> anymore. Hope this is fixed in SP1.
>

My System SpecsSystem Spec
Old 10-03-2006   #5 (permalink)
=?Utf-8?B?QW5kcmV3IFdlYmI=?=


 
 

RE: RC2 - where has System.Management.Automation.dll gone?

> thanks for that tip Andrew -- i've thanked tyou for it in the FAQ for
> ShinyPower (since i just used your help here to get the next release out)


Thank you sir.

Please also note Jeffrey Snover's one-liner for extracting the RC2 DLLs from
the GAC and putting them into a folder of your choice (use until the proper
RC2 SDK is released):-

http://blogs.msdn.com/powershell/arc...ainst-RC2.aspx

Andrew
My System SpecsSystem Spec
Old 01-10-2008   #6 (permalink)
Pavan kumar


 
 

RE: RC2 - where has System.Management.Automation.dll gone?



"Andrew Webb" wrote:
Quote:
Quote:

> > thanks for that tip Andrew -- i've thanked tyou for it in the FAQ for
> > ShinyPower (since i just used your help here to get the next release out)
>
> Thank you sir.
>
> Please also note Jeffrey Snover's one-liner for extracting the RC2 DLLs from
> the GAC and putting them into a folder of your choice (use until the proper
> RC2 SDK is released):-
>
> http://blogs.msdn.com/powershell/arc...ainst-RC2.aspx
>
> Andrew


i was trying to implement similar kind of application and i required to use
the System.Management.Automation.dll so that i can get the functionality of
power shell and i have to write the code using com is there any way to do it
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
System.Management.Automation.dll missing PowerShell
Re: System.Management.Automation.dll missing? PowerShell
-is [System.Management.Automation.PSCustomObject] PowerShell
referencing system.management.automation DLL (or other Gac'd ones) PowerShell
Getting Exception System.Management.Automation.PSArgumentException PowerShell


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