<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);">情景:近来vs2008 不知怎么 宏不能运行了,对于我查看代码很不方便。。</span>
解决方案: 搜索 文件名 vsmsvr.exe.config ( 我用everything 搜索路径为 C:\Program Files\Common Files\microsoft shared\VSA\9.0\VsaEnv)。。
打开这个文件增加 <AllowDComReflection enabled="1"/> 一句,如下文件内容。。(注意修改时,在右击属性-》安全 中设置修改的权限 才能修改成功)
<?xml version ="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
</startup>
<runtime>
<AllowDComReflection enabled="1"/>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="EnvDTE" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
<bindingRedirect oldVersion="7.0.3300.0" newVersion="8.0.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.net>
<settings>
<ipv6 enabled="true" />
</settings>
</system.net>
</configuration>