Ejemplo n.º 1
0
        public virtual int StartBuild(IVsOutputWindowPane pane, uint options)
        {
            config.PrepareBuild(false);

            // Current version of MSBuild wish to be called in an STA
            uint flags = VSConstants.VS_BUILDABLEPROJECTCFGOPTS_REBUILD;

            // If we are not asked for a rebuild, then we build the default target (by passing null)
            this.Build(options, pane, ((options & flags) != 0) ? MsBuildTarget.Rebuild : null);

            return(VSConstants.S_OK);
        }
Ejemplo n.º 2
0
 public virtual int QueryStartClean(uint options, int[] supported, int[] ready)
 {
     config.PrepareBuild(false);
     if (supported != null && supported.Length > 0)
     {
         supported[0] = 1;
     }
     if (ready != null && ready.Length > 0)
     {
         ready[0] = (this.config.ProjectMgr.BuildInProgress) ? 0 : 1;
     }
     return(VSConstants.S_OK);
 }