zoukankan      html  css  js  c++  java
  • 深入浅出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:\

  • 相关阅读:
    开发一个App的成本是多少?
    自定义Drawable
    数据库服务软件类型和配置redis
    分库分表
    创建视图
    部署MYSQL高可用集群
    读写分离《二》
    读写分离和多实例
    部署mysql主从同步
    备份和恢复
  • 原文地址:https://www.cnblogs.com/mingle/p/2308214.html
Copyright © 2011-2022 走看看