IVsSolutionBuildManager2.StartUpdateSpecificProjectConfigurations(UInt32, IVsHierarchy[], IVsCfg[], UInt32[], UInt32[], UInt32[], UInt32, Int32) 方法

定义

使用此方法来维护生成过程的总体控制。Use this method to maintain total control of a build process.

public:
 int StartUpdateSpecificProjectConfigurations(System::UInt32 cProjs, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^> ^ rgpHier, cli::array <Microsoft::VisualStudio::Shell::Interop::IVsCfg ^> ^ rgpcfg, cli::array <System::UInt32> ^ rgdwCleanFlags, cli::array <System::UInt32> ^ rgdwBuildFlags, cli::array <System::UInt32> ^ rgdwDeployFlags, System::UInt32 dwFlags, int fSuppressUI);
public:
 int StartUpdateSpecificProjectConfigurations(unsigned int cProjs, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^> ^ rgpHier, Platform::Array <Microsoft::VisualStudio::Shell::Interop::IVsCfg ^> ^ rgpcfg, Platform::Array <unsigned int> ^ rgdwCleanFlags, Platform::Array <unsigned int> ^ rgdwBuildFlags, Platform::Array <unsigned int> ^ rgdwDeployFlags, unsigned int dwFlags, int fSuppressUI);
int StartUpdateSpecificProjectConfigurations(unsigned int cProjs, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const &> const & rgpHier, std::Array <Microsoft::VisualStudio::Shell::Interop::IVsCfg const &> const & rgpcfg, std::Array <unsigned int> const & rgdwCleanFlags, std::Array <unsigned int> const & rgdwBuildFlags, std::Array <unsigned int> const & rgdwDeployFlags, unsigned int dwFlags, int fSuppressUI);
public int StartUpdateSpecificProjectConfigurations (uint cProjs, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[] rgpHier, Microsoft.VisualStudio.Shell.Interop.IVsCfg[] rgpcfg, uint[] rgdwCleanFlags, uint[] rgdwBuildFlags, uint[] rgdwDeployFlags, uint dwFlags, int fSuppressUI);
abstract member StartUpdateSpecificProjectConfigurations : uint32 * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy[] * Microsoft.VisualStudio.Shell.Interop.IVsCfg[] * uint32[] * uint32[] * uint32[] * uint32 * int -> int
Public Function StartUpdateSpecificProjectConfigurations (cProjs As UInteger, rgpHier As IVsHierarchy(), rgpcfg As IVsCfg(), rgdwCleanFlags As UInteger(), rgdwBuildFlags As UInteger(), rgdwDeployFlags As UInteger(), dwFlags As UInteger, fSuppressUI As Integer) As Integer

参数

cProjs
UInt32

中项目计数。[in] Count of projects.

rgpHier
IVsHierarchy[]

中指定要生成的项目。[in] Specifies projects to build.

rgpcfg
IVsCfg[]

中在中指定的项目中的配置 rgpHier[in] A configuration in the projects specified in rgpHier.

rgdwCleanFlags
UInt32[]

[in] 中每个对应的项目的 dwOptions 参数 rgpHier StartBuildEx(UInt32, IVsOutputWindowPane, UInt32)[in] dwOptions parameter for each corresponding project in rgpHier to StartBuildEx(UInt32, IVsOutputWindowPane, UInt32). 可以为 nullCan be null.

rgdwBuildFlags
UInt32[]

[in] 中每个对应的项目的 dwOptions rgpHier StartBuildEx(UInt32, IVsOutputWindowPane, UInt32)[in] dwOptions for each corresponding project in rgpHier to StartBuildEx(UInt32, IVsOutputWindowPane, UInt32). 可以是 nullCan be null

rgdwDeployFlags
UInt32[]

[in] 中每个对应的项目的 dwOptions rgpHier StartDeploy(IVsOutputWindowPane, UInt32)[in] dwOptions for each corresponding project in rgpHier to StartDeploy(IVsOutputWindowPane, UInt32). 可以为 nullCan be null.

dwFlags
UInt32

中包含 VSSOLNBUILDUPDATEFLAGS 标志的双字。[in] Double word containing VSSOLNBUILDUPDATEFLAGS flags.

fSuppressUI
Int32

中应将标志设置 true 为使用对任何对话框的默认响应,这将被取消; 否则为 false[in] Flag should be set true to use the default response to any dialogs, which will be suppressed; otherwise false.

返回

Int32

如果该方法成功,则它会返回 S_OKIf the method succeeds, it returns S_OK. 如果该方法失败,则会返回错误代码。If it fails, it returns an error code.

注解

COM 签名COM Signature

从 vsshell:From vsshell.idl:

HRESULT IVsSolutionBuildManager2::StartUpdateSpecificProjectConfigurations(  
   [in] UINT cProjs,  
   [in, size_is(cProjs)] IVsHierarchy *rgpHier[],  
   [in, size_is(cProjs)] IVsCfg *rgpCfg[],  
   [in, size_is(cProjs)] DWORD rgdwCleanFlags[],  
   [in, size_is(cProjs)] DWORD rgdwBuildFlags[],  
   [in, size_is(cProjs)] DWORD rgdwDeployFlags[],  
   [in] DWORD dwFlags, [in] BOOL fSuppressUI  
);  

使用此方法可以对生成进行总体控制。Use this method to have total control of a build. 只有指定的项目和配置将按照中的显示顺序生成 rgpHier ; 不会生成依赖项目。Only specified projects and configurations will be built in the order of appearance in rgpHier; dependent projects will not be built.

如果相应的参数数组为,则 "生成/清理/部署" 标记全部默认为零 nullThe Build/Clean/Deploy flags all default to zero if the corresponding parameter array is null.

适用于