为什么我的Visual Studio 2008 SP1宏停止工作

时间:2009-11-04 17:14:11

标签: visual-studio visual-studio-2008 macros

我无法为我的生活弄清楚为什么我的构建事件宏不再触发。有任何想法吗?

Option Strict Off
Option Explicit Off
Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics

Public Module EnvironmentEvents

    Private Sub BuildEvents_OnBuildProjConfigDone(ByVal Project As String, _
                                                ByVal ProjectConfig As String, _
                                                ByVal Platform As String, _
                                                ByVal SolutionConfig As String, _
                                                ByVal Success As Boolean) _
                                    Handles BuildEvents.OnBuildProjConfigDone
        If Success = False Then
            'The build failed...cancel any further builds.
            DTE.ExecuteCommand("Build.Cancel")
        End If
    End Sub
End Module

1 个答案:

答案 0 :(得分:0)

您是否尝试过运行Windows Update?所有的宏都不起作用还是只是这个?