VS2005 ~ VS2010 中宏不能运行的解决办法
来源:互联网 发布:蜀道难 知乎 编辑:程序博客网 时间:2024/05/29 03:18
其实这是一个老问题了,表现为你在VS中定义的宏快捷键按了没反应......
“微软就喜欢自己给自己下坑,然后顺带坑所有人”
VS2005
C:\Program Files (x86)\Common Files\microsoft shared\VSA\8.0\VsaEnv\vsmsvr.exe.config
VS2008
C:\Program Files (x86)\Common Files\microsoft shared\VSA\9.0\VsaEnv\vsmsvr.exe.config
VS2010
C:\Program Files (x86)\Common Files\microsoft shared\VSA\9.0\VsaEnv\vsmsvr10.exe.config
解决办法:
在上述 .config 文件的 <runtime> 下面增加一行:<AllowDComReflection enabled="true"/> 或 <AllowDComReflection enabled="1"/> 即可
<runtime>
<AllowDComReflection enabled="1"/>
...
</runtime>
另附:
Visual Studio 2010 Macros Stop Working after February 2014 Windows Update
Installing recent February 11, 2014 Windows updates breaks Visual Studio 2010 macros functionality. Macros just don’t run any more without an error message. More specifically, it is MS14-009 update “Vulnerabilities in .NET Framework Could Allow Elevation of Privilege (2916607)” (rated as Important) breaks macros. And more specifically it is the Elevation of Privilege part of this update.
Update (May 20): Microsoft released an update for Microsoft Visual Studio 2010 Service Pack 1 that fixes the issue of Visual Studio Macros stop working after installing MS14-009.
Download KB2938807.
http://www.microsoft.com/en-us/download/details.aspx?id=42541
Update (October 25): Microsoft released an update for Microsoft Visual Studio 2008 Service Pack 1 that fixes the issue of Visual Studio Macros stop working after installing MS14-009:
Download KB2938806.
http://www.microsoft.com/en-US/download/details.aspx?id=42540
And similar update for Microsoft Visual Studio 2005 Service Pack 1:
Download KB2938803.
http://www.microsoft.com/en-us/download/details.aspx?id=42945
0 0
- VS2005 ~ VS2010 中宏不能运行的解决办法
- 用VS2005编译的应用程序在其它VS2005机器不能正常运行的原因和解决办法
- VS2005编译的程序在XP系统下不能运行的解决办法
- VS2005编译的程序在XP系统下不能运行的解决办法
- VS2008宏不能运行的解决办法
- IE8导致vs2005不能debug的解决办法
- VS2005 调试不能设置断点的解决办法
- VS2005 调试不能设置断点的解决办法
- VS2005 调试不能设置断点的解决办法
- VS2005 调试不能设置断点的解决办法
- VS2005 调试不能设置断点的解决办法
- Genymotion不能运行的解决办法
- VS2010不能创建项目的解决办法
- VS2010不能创建项目的解决办法
- VS2010+opencv中Debug下运行,Release下运行,其中一个不能成功的原因。
- visual studio 2008(VS2008)中不能运行自定义宏的解决办法
- VS2008宏不能运行解决办法
- 解决VS2008的程序不能在VS2005中运行的问题
- hive 开机重启 mysql
- Github GUI 基本操作教程
- 【Demo】iOS可吸附拖动的悬浮窗按钮插件
- PowerManager之WakeLock源码解析
- 操作系统实验四 页面置换算法(fifo 算法代码------页面置换代码集合)
- VS2005 ~ VS2010 中宏不能运行的解决办法
- c语言学习笔记27之指针3
- php中引用&的真正理解-变量引用、函数引用、对象引用
- 跨进程数据共享问题及解决方案
- Spark Streaming的Transformation、Action、Input和Output源码图解(第24课)
- 考研复习第1弹
- char[] 与 char*传字符串的区别
- Eclipse配置内存大小
- 求两个单链表的交点