public AddCfgsOfCfgName ( string name, string cloneName, int fPrivate ) : int | ||
name | string | The name of the new configuration. |
cloneName | string | the name of the configuration to copy, or a null reference, indicating that AddCfgsOfCfgName should create a new configuration. |
fPrivate | int | Flag indicating whether or not the new configuration is private. If fPrivate is set to true, the configuration is private. If set to false, the configuration is public. This flag can be ignored. |
리턴 | int |
public virtual int AddCfgsOfCfgName(string name, string cloneName, int fPrivate)
{
// We need to QE/QS the project file
if (!this.ProjectManager.QueryEditProjectFile(false))
{
throw Marshal.GetExceptionForHR(VSConstants.OLE_E_PROMPTSAVECANCELLED);
}
foreach (MSBuild.Project project in GetBuildProjects(true))
{
int hr = AddConfiguration(project, name, cloneName);
if (ErrorHandler.Failed(hr))
return hr;
}
NotifyOnCfgNameAdded(name);
return VSConstants.S_OK;
}