Visual Studio宏停止工作 [英] Visual Studio Macros stopped working
问题描述
我的Visual Studio宏停止工作,没有显示或记录任何错误,我可以找到.
My Visual Studio Macros stopped working, with no errors displayed or logged I could find.
(我确实认为这是我对机器所做的事情.)
推荐答案
Microsoft发布了Windows Update,该Windows Update修复了安全问题(
Microsoft released a Windows Update that fixed a security issue (MS14-009) that broke Visual Studio Macros.
KB2934830 中描述的解决方法是添加
The workaround, described in KB2934830, is to add
<?xml version="1.0"?>
<configuration>
<runtime>
<AllowDComReflection enabled="1"/>
</runtime>
</configuration>
到您的Visual Studio Macros Server .exe.config
.
to your Visual Studio Macros Server .exe.config
.
取决于您的Visual Studio版本和Windows位数,文件为:
Depending upon your Visual Studio version and Windows bitness, the file is:
64-bit Windows:
\Program Files (x86)\Common Files\Microsoft Shared\VSA\
32-bit Windows:
\Program Files\Common Files\Microsoft Shared\VSA\
VS2k5 (SP1):
8.0\VsaEnv\Vsmsvr.exe.config
VS2k8:
9.0\VsaEnv\Vsmsvr.exe.config
VS2010:
9.0\VsaEnv\Vsmsvr10.exe.config
您需要以管理员身份编辑文件(或调整权限),并且该文件应已包含<configuration><runtime>
部分.
You'll need to edit the file as an administrator (or otherwise adjust permissions), and it ought to already contain the <configuration><runtime>
section.
(尽管我从知识库文章中收集了以上内容,但我的Google搜索通过
(Although I gleaned the above from the KB article, my Google searching found this via this.)
这篇关于Visual Studio宏停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!