EnvDTE.Configuration.Properties always only contain OutputPath in CTP7 database project  
Author Message
ERwinVSDB





PostPosted: Visual C# General, EnvDTE.Configuration.Properties always only contain OutputPath in CTP7 database project Top

In CTP7 (Same as in the previous CTPs), if get the current EnvDTE.Configuration, the Configuration.Properties always only contain outputPath, all other properties in not there, below is the code:

private void CreateVSDBConfig( EnvDTE.Project proj)

{

try

{

string sCurrentBuildConfiguration = proj.ConfigurationManager..ActiveConfiguration.Name;

string sVSDBConfiguratoin = "VSDB";

EnvDTE.Configurations configs = proj.ConfigurationManager.AddConfigurationRow(sVSDBConfiguratoin, sCurrentBuildConfiguration, true);

foreach (EnvDTE.Configuration config in configs)

{

string name = "";

EnvDTE.Properties props;

props = config.Properties;

foreach (EnvDTE.Property prop in props)

{

name = name + prop.Name + "\n";

}

MessageBox.Show(proj.ConfigurationManager.ActiveConfiguration.ConfigurationName + name);

}

}

catch(Exception ex) // Handle the generic exceptions here.

{

xMessageBox.ShowErrorMessage(ex.Message);

}

finally

{

// Finalize here.

}

}




Visual C#7