How to disable build command when i start build programmatically RRS feed

  • Question

  • Hi. In my extension i start build programmatically. But when building was started some items (build solution, rebuild solution) is enable in BUILD menu. How can i disable their?


    Thursday, June 5, 2014 2:36 PM


  • Hi,

    Welcome here!

    According to your description, you need the commands for starting the building or rebuilding a Visual Studio project be disabled programmatically.

    I suggest you refer to the following 2 threads.

    How to disable build command in VS2008 (like build is already running) (VSPackage)


    It is about turning on/off the same UIContext values that the SolutionBuildManager normally does.

    How to disable Visual Studio Commands?


    Best regards,

    • Marked as answer by Anna Cc Sunday, June 15, 2014 2:45 AM
    Monday, June 9, 2014 2:26 PM