문제

I'm making VS add-in which changes debugging commandline. This part works, but i need to start debugging after it's changed.

How do I start debugging from add-in?

mybe something from this function might help

Function GetCommandArgsProperty() As EnvDTE.Property
    Dim solution As Solution
    Dim project As Project
    Dim sb As SolutionBuild
    Dim cm As ConfigurationManager
    Dim config As Configuration
    Dim properties As Properties
    Dim prop As EnvDTE.Property

    solution = _applicationObject.Solution
    sb = solution.SolutionBuild

    For Each str As String In sb.StartupProjects
        project = solution.Item(str)
        cm = project.ConfigurationManager
        config = cm.ActiveConfiguration
        properties = config.Properties

        For Each prop In properties
            If prop.Name = "CommandArguments" Then
                Return prop
            End If
        Next
    Next
End Function
도움이 되었습니까?

해결책

got it working

        Dim dte As EnvDTE.DTE = GetService(GetType(EnvDTE.DTE))
        dte.Solution.SolutionBuild.Run()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top