Parallel build for my custom projects. RRS feed

  • Question

  • Hi. I create extension which added my custom project type to the Visual Studio. I guess that the solution has many custom projects. I want build all projects in parallel mode. But Visual Studio build their only in one thread. How can i build projects in parallel mode? Thanks.

    P.S. I know about IVSBuildableProjectCfg2. But i don't know how to implement it. 

    Tuesday, May 27, 2014 9:37 AM


  • Hi,

    Thank you for posting here!

    According to your description, you want to know how to parallel build in your extension.

    I suggest you read this similar thread below.


    " it appears that the VC++ project package implements an interface named IVSBuildableProjectCfg2.  The IDE queries for the interface and calls GetBuildCfgProperty with __VSBLDCFGPROPID.VSBLDCFGPROPID_SupportsMTBuild. "

    What's more, there are 2 code snippet for your reference.

    STDMETHODIMP CBuildProjCfg::StartBuildEx (DWORD  dwBuildId,  
                               IVsOutputWindowPane *pIVsOutputWindowPane,
                               DWORD dwOptions)
        return StartBuild(pIVsOutputWindowPane, dwOptions);
    STDMETHODIMP CBuildProjCfg::GetBuildCfgProperty (VSBLDCFGPROPID propid, 
                                                                           VARIANT *pvar)
        pvar->boolVal = VARIANT_TRUE;
        return S_OK;

    Best regards,

    • Marked as answer by Anna Cc Tuesday, June 10, 2014 1:37 AM
    Wednesday, May 28, 2014 2:39 AM