none
VS2010 Ultimate SP1中无法运行自己写的宏(Macros),Macros IDE中自带的宏可以运行! RRS feed

  • 问题

  • VS2010 Ultimate SP1中无法运行自己写的宏(Macros),Macros IDE 中自带的宏可以运行! 自动写的宏在按相应的快键键去执行时,鼠标指针会刷新一个,但没有在右下角弹出正常运行宏时所弹出来“宏正在运行中”提示!

    OS: WIN7 Ultimate 64bit

    VS2010详细版本如下:

    Microsoft Visual Studio 2010
    Version 10.0.40219.1 SP1Rel
    Microsoft .NET Framework
    Version 4.5.50709 SP1Rel

    Installed Version: Ultimate

    Microsoft Office Developer Tools   01019-532-2002102-70413
    Microsoft Office Developer Tools

    Microsoft Visual Basic 2010   01019-532-2002102-70413
    Microsoft Visual Basic 2010

    Microsoft Visual C# 2010   01019-532-2002102-70413
    Microsoft Visual C# 2010

    Microsoft Visual C++ 2010   01019-532-2002102-70413
    Microsoft Visual C++ 2010

    Microsoft Visual Studio 2010 Architecture and Modeling Tools   01019-532-2002102-70413
    Microsoft Visual Studio 2010 Architecture and Modeling Tools
        
    UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

    Microsoft Visual Studio 2010 Code Analysis Spell Checker   01019-532-2002102-70413
    Microsoft Visual Studio 2010 Code Analysis Spell Checker

    Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

    The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

    Microsoft Visual Studio 2010 Team Explorer   01019-532-2002102-70413
    Microsoft Visual Studio 2010 Team Explorer

    Crystal Reports Templates for Microsoft Visual Studio 2010   
    Crystal Reports Templates for Microsoft Visual Studio 2010

    Hotfix for Microsoft Visual Studio 2010 Ultimate - ENU (KB2565057)   KB2565057
    This hotfix is for Microsoft Visual Studio 2010 Ultimate - ENU.
    If you later install a more recent service pack, this hotfix will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/2565057.

    Microsoft Visual Studio 2010 Ultimate - ENU Service Pack 1 (KB983509)   KB983509
    This service pack is for Microsoft Visual Studio 2010 Ultimate - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/983509.

    Macros IDE详细版本如下:

    Microsoft Visual Studio 2008
    Version 9.0.30729.4450 QFE
    Microsoft .NET Framework
    Version 3.5 SP1

    Installed Edition: Unspecified

    Microsoft Visual Studio Macros   
    Microsoft Visual Studio Macros 9.0

    ----------------------------------------------------------------------------------------------------------------------------------------

    我在一个同事的64bit WIN7上安装的VS2010中文版上测试了一个是可以正常运行自已写的宏的,他的VS版本信息如下

        Microsoft Visual Studio 2010
        版本 10.0.30319.1 RTMRel
        Microsoft .NET Framework
        版本 4.0.30319 RTMRel

        已安装的版本: Ultimate

        Microsoft Office 开发人员工具 01019-532-2002102-70649
        Microsoft Office 开发人员工具

        Microsoft Visual Basic 2010 01019-532-2002102-70649
        Microsoft Visual Basic 2010

        Microsoft Visual C# 2010 01019-532-2002102-70649
        Microsoft Visual C# 2010

        Microsoft Visual C++ 2010 01019-532-2002102-70649
        Microsoft Visual C++ 2010

        Microsoft Visual F# 2010 01019-532-2002102-70649
        Microsoft Visual F# 2010

        Microsoft Visual Studio 2010 代码分析拼写检查器 01019-532-2002102-70649
        Microsoft Visual Studio 2010 代码分析拼写检查器

        International CorrectSpell(TM) spelling correction system(C) 1993 部分版权归 Lernout & Hauspie Speech Products N.V. 所有。保留所有权利。

        The American Heritage(R) Dictionary of the English Language, Third Edition。版权所有(C) 1992 Houghton Mifflin Company。电子版由 Lernout & Hauspie Speech Products N.V. 颁发许可。保留所有权利。

        Microsoft Visual Studio 2010 体系结构和建模工具 01019-532-2002102-70649
        Microsoft Visual Studio 2010 体系结构和建模工具

        UML:emoji: 和 Unified Modeling Language:trademark: 是 Object Management Group, Inc. 在美国和其他国家/地区的商标或注册商标。

        Microsoft Visual Studio 2010 团队资源管理器 01019-532-2002102-70649
        Microsoft Visual Studio 2010 团队资源管理器

        Microsoft Visual Web Developer 2010 01019-532-2002102-70649
        Microsoft Visual Web Developer 2010

        Crystal Reports Templates for Microsoft Visual Studio 2010
        Crystal Reports Templates for Microsoft Visual Studio 2010

        Hotfix for Microsoft Visual Studio 2010 旗舰版 - 简体中文 (KB2542054) KB2542054
        This hotfix is for Microsoft Visual Studio 2010 旗舰版 - 简体中文.
        If you later install a more recent service pack, this hotfix will be uninstalled automatically.
        For more information, visit http://support.microsoft.com/kb/2542054.

        Microsoft Visual Studio 2010 SharePoint 开发人员工具 10.0.30319
        Microsoft Visual Studio 2010 SharePoint 开发人员工具

        Security Update for Microsoft Visual Studio 2010 旗舰版 - 简体中文 (KB2251489) KB2251489
        This security update is for Microsoft Visual Studio 2010 旗舰版 - 简体中文.
        If you later install a more recent service pack, this security update will be uninstalled automatically.
        For more information, visit http://support.microsoft.com/kb/2251489.

        Security Update for Microsoft Visual Studio 2010 旗舰版 - 简体中文 (KB2644980) KB2644980
        This security update is for Microsoft Visual Studio 2010 旗舰版 - 简体中文.
        If you later install a more recent service pack, this security update will be uninstalled automatically.
        For more information, visit http://support.microsoft.com/kb/2644980.

        Visual Assist X
        For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2012 Whole Tomato Software, Inc.

        VisualSVN 3.0.3
        Integration with Subversion version control. For more information about VisualSVN, see the VisualSVN website at http://www.visualsvn.com
        Copyright В:copyright: 2005-2012 VisualSVN Ltd. All rights reserved.

        Qt Add-in 1.2.0
        This is Visual Studio Add-in component for Qt. For more information about Qt, see
        http://qt.digia.com
        Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies)

        VMDebugger
        For more information about VMware Inc, see their website at
        http://www.vmware.com
        Copyright (c) 2011 VMware, Inc.

        他的Macros IDE 版本信息如下:

        Microsoft Visual Studio 2008
        版本 9.0.30729.4450 QFE
        Microsoft .NET Framework
        版本 3.5 SP1

        已安装的版本: Unspecified

        Microsoft Visual Studio Macros
        Microsoft Visual Studio Macros 9.0

        这个问题困绕我好久了,烦请高手们给予指导! 多谢!




    2013年8月21日 3:23

全部回复

  • 问题原因已经找到!

    如果无法生成宏的父项目(如项目中的另一个宏有错误),则不能运行该宏。

    参见:http://msdn.microsoft.com/zh-cn/library/bxk3af4y%28v=vs.100%29.aspx

    因为我的Macro中有一个module有语法错误,所以导致整个macro不能使用!

    2013年8月24日 3:19