• 深入浅出Powershell——拷贝GAC中dll文件


     场景:我们在客户的VM环境中进行SharePoint的开发工作,由于权限的限制(连IE的设置都无法修改),我们在很多情况除了以Administrator的身份执行应用程序(IE,VS2010,cmd窗口,集成SharePoint的PowerShell命令窗口等)外,我们可能需要拷贝GAC的dll文件,怎么办呢?

    以下操作以从GAC中拷贝HR系统的Common.dll到D盘为例

    PS C:\> cd .\Windows

    PS C:\Windows> cd .\assembly

    PS C:\Windows\assembly> cd .\GAC_MSIL

    PS C:\Windows\assembly\GAC_MSIL> cd .\LJ.SharePoint.HR.Common

    备注:按键盘上的下一个或上一个键可以顺序查看dll文件。

    PS C:\Windows\assembly\GAC_MSIL\LJ.SharePoint.HR.Common> cd .\1.0.0.0__652eb99

    08dcf33c9

    PS C:\Windows\assembly\GAC_MSIL\LJ.SharePoint.HR.Common\1.0.0.0__652eb9908dcf3

    3c9> dir 

        Directory: C:\Windows\assembly\GAC_MSIL\LJ.SharePoint.HR.Common\1.0.0.0__

        652eb9908dcf33c9 

    Mode                LastWriteTime     Length Name

    ----                -------------     ------ ----

    -a---        25/08/2011     10:01     140800 LJ.SharePoint.HR.Common.dll 

    PS C:\Windows\assembly\GAC_MSIL\LJ.SharePoint.HR.Common\1.0.0.0__652eb9908dcf3

    3c9> copy *.dll d:\

  • 相关阅读:
    比赛F-F Perpetuum Mobile
    HDU 1003(A
    C-C Radar Installation 解题报告
    Codeforces 18C C. Stripe
    HDU 4911 Inversion
    分蛋糕(C
    抄书(B
    深入了解Android蓝牙Bluetooth——《基础篇》
    2W 字详解 Redis 集群环境搭建实践
    漫画 | 阿姨,我不想努力了~
  • 原文地址:https://www.cnblogs.com/mingle/p/2308214.html
Copyright © 2020-2023  润新知