灵活运用VS外部工具:Copy assembly to GAC
来源:互联网 发布:东莞天助网络怎么样 编辑:程序博客网 时间:2024/06/06 01:29
摘要
Visual Studio是一个超级强大的开发集成环境,在日常开发过程中我们可能只发挥了它30%的功力。除了日常的代码编写,编译,发布,还有众多的功能帮助我们提升开发效率,外部工具
就是其中之一。
在SharePoint开发过程中,如果按照标准的场解决方案开发模式,有任何的改动,比如修改了css,js,动了C#代码,修改了aspx页面文件,调整了Feature,我们都需要部署整个解决方案项目。部署过程是按照解决方案回收,删除,添加,部署,激活这个过程进行,如果场解决方案内容较多,那么这是一个漫长的过程。有没有办法节省时间提升效率呢?此篇介绍其中特定的一种情况:只是解决方案包包含的程序集发生了变化。同样,我们可以借助外部工具
复制程序集到GAC。
过程
选择Visual Studio的:菜单->工具->外部工具,显示如下截图:
点击
添加
按钮,内容分别输入:- 标题:Copy 2 GAC
- 命令:C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- 参数:"[System.Reflection.Assembly]::Load(\"System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a\");$publish = New-Object System.EnterpriseServices.Internal.Publish;$publish.GacInstall(\"$(TargetPath)\")"; iisreset;
- 选中
使用输出窗口
点击
确定按钮
,再次点击 菜单->工具,显示如下截图:
使用
在一个有Dll输出的项目上,点击 菜单->工具->Copy 2 GAC,在Visual Studio集成环境的输出窗口中,我们会发现在Copy to GAC后,顺带重启了iis。如下图:
0 0
- 灵活运用VS外部工具:Copy assembly to GAC
- Install assembly to GAC with VS Installer
- Adding assembly to GAC
- How to Copy an Assembly From the GAC to the File System
- GAC-Global Assembly Cache
- GAC-Global Assembly Cache
- GAC(Global Assembly Cache)
- GAC: Global Assembly Cache
- GAC's location from C:\windows\assembly to \Microsoft.NET\assembly\ since .net 4.0
- vs外部工具
- Copy GAC dll
- VS 2012 中的外部工具
- c# - GAC(Global Assembly Cache) Viewer
- dynamic load an assembly from GAC
- 【实验一】VC编程工具的灵活运用
- 灵活运用浏览器调试工具F12修改样式
- SubSonic 外部工具配置到VS
- 灵活运用政务信息系统
- Win7部署MVC网站问题
- Java安全(JCA(Java Cryptography Architecture)/JSSE(Java Secure Socket Extension)):基本知识
- MySQL当批量插入遇上唯一索引
- 关于J2EE中的Listener监听器
- IOS SDK不支持64位,编译报错,解决办法
- 灵活运用VS外部工具:Copy assembly to GAC
- 第12周项目3 图遍历算法实现
- MySQL定时器Events
- position & anchorPoint!
- [Android] Android开发优化之——使用软引用和弱引用
- UI之imageView
- iOS动画开发之五——炫酷的粒子效果
- JavaFX 简单3D示例
- Android 登录已知wifi