The System.management.automation.resources.dll didn't come with the download.
The System.management.automation.resources.dll didn't come with the download.
get-childItem $env:windir
System.management.automation.resources.dll -recurse
Directory: Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\assembly\GAC_MS
IL\System.Management.Automation.resources\1.0.0.0_en_31bf3856ad364e35
--
Kiron
"Joe G" <Joe G@xxxxxx> wrote in message
news:1D1261C5-F27D-44C1-9AD7-840EFABFDB73@xxxxxx
> The System.management.automation.resources.dll didn't come with the
> download.
I've got 2 copies on this machine, both of which were installed with the
PowerShell download
C:\Windows\assembly\GAC_MSIL\System.Management.Automation.Resources\1.0.0.0_en_31bf3856ad364e35\System.Management.Automation.Resources.dll
C:\Windows\winsxs\msil_system.management.automation.resources_31bf3856ad364e35_6.0.6000.16386_en-us_8ea69ba228f687a2\System.Management.Automation.Resources.dll
--
Jon
Thanks for the fast response. I used your suggestion and it kind of found
file, though using the explorer I don't see the GAC_MSIL folder under that of
the assembly. What I'm trying to do is reference this in my visual studio C#
project but browsing for the resource doesn't work and I don't really
understand the assembly folder in the first place, having no experience in
using same.
"Kiron" wrote:
> get-childItem $env:windir
> System.management.automation.resources.dll -recurse
>
> Directory: Microsoft.PowerShell.Core\FileSystem::C:\WINDOWS\assembly\GAC_MS
> IL\System.Management.Automation.resources\1.0.0.0_en_31bf3856ad364e35
>
> --
> Kiron
>
>
You can open its folder:
get-childItem $env:windir
System.management.automation.resources.dll -recurse | foreach
{$_.fullname -replace $_.name} | invoke-item
...or copy the assembly:
$dll = @(get-childItem $env:windir
System.management.automation.resources.dll -recurse)
copy-item $dll[0].fullName <destination>
--
Kiron
Maybe you could explain why when I use the windows explorer to look at the
windows assembly folder all i see are the assembly names entities but not the
folders (i.e. GAC_MSIL) which are all I see when I use a command window?
"Jon" wrote:
> "Joe G" <Joe G@xxxxxx> wrote in message
> news:1D1261C5-F27D-44C1-9AD7-840EFABFDB73@xxxxxx>
> > The System.management.automation.resources.dll didn't come with the
> > download.
>
> I've got 2 copies on this machine, both of which were installed with the
> PowerShell download
>
> C:\Windows\assembly\GAC_MSIL\System.Management.Automation.Resources\1.0.0.0_en_31bf3856ad364e35\System.Management.Automation.Resources.dll
>
> C:\Windows\winsxs\msil_system.management.automation.resources_31bf3856ad364e35_6.0.6000.16386_en-us_8ea69ba228f687a2\System.Management.Automation.Resources.dll
>
> --
> Jon
>
>
"...reference information about the APIs provided by Windows PowerShell"
Take a look at Windows PowerShell SDK, I believe that's what you're looking
for:
Windows PowerShell SDK
http://msdn2.microsoft.com/en-us/library/ms714469.aspx
At the bottom of the page is the download link.
--
Kiron
"Joe G" <JoeG@xxxxxx> wrote in message
news:A8CC1928-BC28-454F-95F9-269CBE472758@xxxxxx
> Maybe you could explain why when I use the windows explorer to look at the
> windows assembly folder all i see are the assembly names entities but not
> the
> folders (i.e. GAC_MSIL) which are all I see when I use a command window?
>
Sure. It's due to the 'desktop.ini' file within the assembly folder, which
affects the way explorer.exe presents it to you. Delete that file and you'd
get the standard view. You may wish to make a copy of it first as a backup,
if you try that.
#To see the contents of the file
get-content -force "C:\Windows\assembly\desktop.ini"
NB You'd need to run the above command from an elevated command prompt, if
you're using Vista
--
Jon
"Jon" <Email_Address@xxxxxx> wrote in message
news:exj%23$cK8HHA.600@xxxxxx
> #To see the contents of the file
> get-content -force "C:\Windows\assembly\desktop.ini"
>
> NB You'd need to run the above command from an elevated command prompt, if
> you're using Vista
>
Ok, my bad. The following should work elevated or non-elevated
get-content "C:\Windows\assembly\desktop.ini"
--
Jon
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| System.Management.Automation.dll missing | nadeekakodi | PowerShell | 0 | 07 Nov 2008 |
| RC2 - where has System.Management.Automation.dll gone? | =?Utf-8?B?QW5kcmV3IFdlYmI=?= | PowerShell | 5 | 10 Jan 2008 |
| Re: System.Management.Automation.dll missing? | Oisin Grehan | PowerShell | 2 | 25 Nov 2007 |
| -is [System.Management.Automation.PSCustomObject] | Doug | PowerShell | 3 | 04 Apr 2007 |
| referencing system.management.automation DLL (or other Gac'd ones) | klumsy@xtra.co.nz | PowerShell | 2 | 23 Mar 2007 |