![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| | #6 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||