VS2010中宏功能在2014年2月份的一个系统更新之后不能正常使用

php中文网
发布: 2016-06-07 15:43:11
原创
1731人浏览过

为了编码的方便,在vs2010中添加了几个用于做注释的宏命令(macros),之前一直工作正常,近期突然发现调用宏命令时,不能产生作用,并且没有弹出任何异常提示。 在网上查找到一篇文章:http://visualstudioextensions.vlasovstudio.com/2014/02/13/visual-s

为了编码的方便,在vs2010中添加了几个用于做注释的宏命令(macros),之前一直工作正常,近期突然发现调用宏命令时,不能产生作用,并且没有弹出任何异常提示。

在网上查找到一篇文章:http://visualstudioextensions.vlasovstudio.com/2014/02/13/visual-studio-2010-macros-stop-working-after-february-2014-windows-update/

文中指出该问题是由于2014年2月份的一次windows系统更新,导致VS2010中的宏命令工作异常。

解决方法一:卸载导致问题的升级补丁

Windows update to uninstall to restore macros functionality in Visual Studio 2010
  .NET 4.5.1 .NET 4.5 .NET 4
Windows 8.1 KB2898871    
Windows 8 KB2898870 KB2898865  
Windows 7 KB2898869 KB2898864 KB2898855
Windows XP     KB2898855
解决方法二:编辑VS2010的运行配置文件

Update (February 18): To restore Visual Studio 2010 macros functionality without removing Windows updates, you can add the AllowDComReflection configuration setting (published by Jens) to vsmsvr10.exe.configvsaenv10.exe.config anddevenv.exe.config files (note, you need to run your editor with admin rights for correct modification of these files):

<configuration>
    <runtime>
        <AllowDComReflection enabled="true"/>
登录后复制

On a 64-bit Windows machine default paths to these files are:

"C:\Program Files (x86)\Common Files\Microsoft Shared\VSA\9.0\VsaEnv\vsmsvr10.exe.config"
"C:\Program Files (x86)\Common Files\Microsoft Shared\VSA\9.0\VsaEnv\vsaenv10.exe.config"
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config"
登录后复制
笔者使用第2种解决方法解决了该问题。
最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号