Microsoft.VisualStudio.Project.ProjectNode.CallMSBuild C# (CSharp) Method

CallMSBuild() public method

Calls MSBuild if it is not suspended. Does not log and uses current configuration. If it is suspended then it will remeber to call when msbuild is resumed.
public CallMSBuild ( string target ) : MSBuildResult
target string
return MSBuildResult
        public MSBuildResult CallMSBuild(string target)
        {
            return this.CallMSBuild(String.Empty, null, target);
        }

Same methods

ProjectNode::CallMSBuild ( string target, IVsOutputWindowPane output ) : MSBuildResult
ProjectNode::CallMSBuild ( string config, IVsOutputWindowPane output, string target ) : MSBuildResult
ProjectNode::CallMSBuild ( string config, string target ) : MSBuildResult

Usage Example

Esempio n. 1
0
        public virtual void Initialize(ProjectNode projectNode)
        {
            if (projectNode == null)
            {
                throw new ArgumentNullException("projectNode");
            }

            if (projectNode.CallMSBuild("GetFrameworkPaths") != MSBuildResult.Successful)
            {
                throw new InvalidOperationException("Build of GetFrameworkPaths failed.");
            }

            this.rarInputs = new RarInputs(projectNode.CurrentConfig);
        }
All Usage Examples Of Microsoft.VisualStudio.Project.ProjectNode::CallMSBuild
ProjectNode