代码之家  ›  专栏  ›  技术社区  ›  Jonathan

为什么我的VisualStudio2008SP1宏可以运行

  •  0
  • Jonathan  · 技术社区  · 15 年前

    我一辈子都搞不明白为什么我的构建事件宏不再启动了。有什么想法吗?

    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 回复  |  直到 15 年前
        1
  •  0
  •   Kirill Osenkov    15 年前